Update app.py
Browse files
app.py
CHANGED
@@ -108,6 +108,6 @@ with demo:
|
|
108 |
ocr_input=[gr.Textbox(label="请填写ocr_token"),gr.Textbox(label="请填写图片网址"),gr.Radio(["身份证","增值税发票","营业执照","银行卡","车牌","机动车发票","驾驶证","行驶证","火车票","定额发票","出租车发票","机票行程单","审批表单","花名册"],"营业执照增值税发票",label="请选择识别类型:")]
|
109 |
ocr_button=gr.Button("开始识别>>")
|
110 |
ocr_output=gr.JSON(label="识别结果")
|
111 |
-
ocr_button.click(
|
112 |
demo.launch()
|
113 |
|
|
|
108 |
ocr_input=[gr.Textbox(label="请填写ocr_token"),gr.Textbox(label="请填写图片网址"),gr.Radio(["身份证","增值税发票","营业执照","银行卡","车牌","机动车发票","驾驶证","行驶证","火车票","定额发票","出租车发票","机票行程单","审批表单","花名册"],"营业执照增值税发票",label="请选择识别类型:")]
|
109 |
ocr_button=gr.Button("开始识别>>")
|
110 |
ocr_output=gr.JSON(label="识别结果")
|
111 |
+
ocr_button.click(dd_ocr, inputs=ocr_input, outputs=ocr_output,api_name='dingding_ocr')
|
112 |
demo.launch()
|
113 |
|