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=["
|
| 10 |
demo.launch(debug=True, share=True)
|
|
|
|
| 6 |
return translated
|
| 7 |
|
| 8 |
options_1 = ['en', 'de', 'fr']
|
| 9 |
+
demo = gr.Interface(fn=translate, inputs=[gr.Textbox(label="Input Text"), gr.Dropdown(options_1, label="Target Language from list"),], outputs="text")
|
| 10 |
demo.launch(debug=True, share=True)
|