Spaces:
Runtime error
Runtime error
Update app.py
#1
by
pengzzz
- opened
app.py
CHANGED
@@ -29,8 +29,8 @@ examples = [['example.jpg','en']]
|
|
29 |
css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
|
30 |
gr.Interface(
|
31 |
inference,
|
32 |
-
[gr.inputs.Image(type='
|
33 |
-
[gr.outputs.Image(type='
|
34 |
title=title,
|
35 |
description=description,
|
36 |
article=article,
|
|
|
29 |
css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
|
30 |
gr.Interface(
|
31 |
inference,
|
32 |
+
[gr.inputs.Image(type='filepath', label='Input'),gr.inputs.Dropdown(choices=['ch', 'en', 'fr', 'german', 'korean', 'japan'], type="value", default='en', label='language')],
|
33 |
+
[gr.outputs.Image(type='filepath', label='Output'), gr.outputs.Textbox(type='text', label='Prediction')],
|
34 |
title=title,
|
35 |
description=description,
|
36 |
article=article,
|