cxeep commited on
Commit
f00f3d6
·
1 Parent(s): d60aaf0

update to newer gr api

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