修正细节错误
This commit is contained in:
@@ -16,7 +16,7 @@ COST = Taskflow('information_extraction', schema=COST_LIST_SCHEMA, model='uie-x-
|
||||
task_path='model/cost_list_model', layout_analysis=False, precision='fp16')
|
||||
|
||||
|
||||
@app.route('/', methods=['POST'])
|
||||
@app.route('/', methods=['POST'], endpoint='cost')
|
||||
@process_request
|
||||
def main():
|
||||
img_path = request.form.get('img_path')
|
||||
|
||||
@@ -16,7 +16,7 @@ DISCHARGE = Taskflow('information_extraction', schema=DISCHARGE_RECORD_SCHEMA, m
|
||||
task_path='model/discharge_record_model', layout_analysis=False, precision='fp16')
|
||||
|
||||
|
||||
@app.route('/', methods=['POST'])
|
||||
@app.route('/', methods=['POST'], endpoint='discharge')
|
||||
@process_request
|
||||
def main():
|
||||
img_path = request.form.get('img_path')
|
||||
|
||||
@@ -18,7 +18,7 @@ SETTLEMENT_IE = Taskflow('information_extraction', schema=SETTLEMENT_LIST_SCHEMA
|
||||
task_path='model/settlement_list_model', layout_analysis=False, precision='fp16')
|
||||
|
||||
|
||||
@app.route('/', methods=['POST'])
|
||||
@app.route('/', methods=['POST'], endpoint='settlement')
|
||||
@process_request
|
||||
def main():
|
||||
img_path = request.form.get('img_path')
|
||||
|
||||
Reference in New Issue
Block a user