Spaces:
Runtime error
Runtime error
update to newer gr api
Browse files
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",
|
| 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,
|