phlippseitz commited on
Commit
eeab14d
1 Parent(s): e077b28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ examples = [['example.jpg','en']]
22
  css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
23
  gr.Interface(
24
  inference,
25
- [gr.inputs.Image(type='file', label='Input'),gr.inputs.Dropdown(choices=['ch', 'en', 'fr', 'german', 'korean', 'japan'], type="value", default='en', label='language')],
26
  gr.outputs.Textbox(type="auto", label="Text extracted from image"),
27
  title=title,
28
  description=description,
 
22
  css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
23
  gr.Interface(
24
  inference,
25
+ [gr.inputs.Image(type='filepath', label='Input'),gr.inputs.Dropdown(choices=['ch', 'en', 'fr', 'german', 'korean', 'japan'], type="value", default='en', label='language')],
26
  gr.outputs.Textbox(type="auto", label="Text extracted from image"),
27
  title=title,
28
  description=description,