Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,5 +6,5 @@ def translate(input_text, language):
|
|
| 6 |
return translated
|
| 7 |
|
| 8 |
options_1 = ['en', 'de', 'fr']
|
| 9 |
-
demo = gr.Interface(fn=translate, inputs=["text", gr.
|
| 10 |
demo.launch(debug=True)
|
|
|
|
| 6 |
return translated
|
| 7 |
|
| 8 |
options_1 = ['en', 'de', 'fr']
|
| 9 |
+
demo = gr.Interface(fn=translate, inputs=["text", gr.Dropdown(options_1),], outputs="text")
|
| 10 |
demo.launch(debug=True)
|