hantech commited on
Commit
1f24223
β€’
1 Parent(s): f46ded8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -151,8 +151,8 @@ choices = [
151
  ]
152
  gr.Interface(
153
  inference,
154
- [gr.inputs.Image(type='file', label='Input'),gr.inputs.CheckboxGroup(choices, type="value", default=['en'], label='language')],
155
- [gr.outputs.Image(type='file', label='Output'), gr.outputs.Dataframe(headers=['text', 'confidence'])],
156
  title=title,
157
  description=description,
158
  article=article,
 
151
  ]
152
  gr.Interface(
153
  inference,
154
+ [gr.inputs.Image(type='pil', label='Input'),gr.inputs.CheckboxGroup(choices, type="value", default=['en'], label='language')],
155
+ [gr.outputs.Image(type='pil', label='Output'), gr.outputs.Dataframe(headers=['text', 'confidence'])],
156
  title=title,
157
  description=description,
158
  article=article,