robin0307 commited on
Commit
3ba8f97
1 Parent(s): c0b42d2

change the file -> filepath

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -66,7 +66,7 @@ lang = gr.inputs.Dropdown(choices=['ch', 'en', 'fr', 'german', 'korean', 'japan'
66
  ocr_version = gr.inputs.Dropdown(choices=['PP-OCRv3', 'PP-OCRv2', 'PP-OCR'], type="value", default='PP-OCRv3', label='ocr_version')
67
  gr.Interface(
68
  inference,
69
- [gr.inputs.Image(type='file', label='Input'), "checkbox", "checkbox", lang, ocr_version],
70
  [gr.outputs.Image(type='pil', label='Output'), gr.outputs.Textbox(type='str', label='Prediction')],
71
  title=title,
72
  description=description,
 
66
  ocr_version = gr.inputs.Dropdown(choices=['PP-OCRv3', 'PP-OCRv2', 'PP-OCR'], type="value", default='PP-OCRv3', label='ocr_version')
67
  gr.Interface(
68
  inference,
69
+ [gr.inputs.Image(type='filepath', label='Input'), "checkbox", "checkbox", lang, ocr_version],
70
  [gr.outputs.Image(type='pil', label='Output'), gr.outputs.Textbox(type='str', label='Prediction')],
71
  title=title,
72
  description=description,