cxeep commited on
Commit
8080cc1
1 Parent(s): e195121

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -30,7 +30,7 @@ examples = [['example.jpg','en']]
30
  css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
31
  gr.Interface(
32
  inference,
33
- [gr.inputs.Image(type='file', label='Input'),gr.inputs.Dropdown(choices=['ch', 'en', 'fr', 'german', 'korean', 'japan'], type="value", default='ch', label='language')],
34
  # gr.outputs.Image(type='file', label='Output'),
35
  outputs="text",
36
  title=title,
 
30
  css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
31
  gr.Interface(
32
  inference,
33
+ [gr.inputs.Image(type='filepath', label='Input'),gr.inputs.Dropdown(choices=['ch', 'en', 'fr', 'german', 'korean', 'japan'], type="value", default='ch', label='language')],
34
  # gr.outputs.Image(type='file', label='Output'),
35
  outputs="text",
36
  title=title,