Robin Chiu commited on
Commit
ace4d47
·
1 Parent(s): 8be172e

fix the bug of output format

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -67,7 +67,7 @@ ocr_version = gr.inputs.Dropdown(choices=['PP-OCRv3', 'PP-OCRv2', 'PP-OCR'], typ
67
  gr.Interface(
68
  inference,
69
  [gr.inputs.Image(type='file', label='Input'), "checkbox", "checkbox", lang, ocr_version],
70
- [gr.outputs.Image(type='file', label='Output'), gr.outputs.Textbox(type='str', label='Prediction')],
71
  title=title,
72
  description=description,
73
  article=article,
 
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,
73
  article=article,