Spaces:
Runtime error
Runtime error
Jesus Carrasco
commited on
Commit
•
dd4e5c1
1
Parent(s):
41f74ad
Update app.py
Browse files
app.py
CHANGED
@@ -28,9 +28,9 @@ def translate_text(text, target_language):
|
|
28 |
language_options = ["Spanish", "French", "Italian", "Ukrainian"]
|
29 |
inputs = [
|
30 |
gr.inputs.Textbox(lines=5, label="Enter text to translate:"),
|
31 |
-
gr.
|
32 |
]
|
33 |
-
outputs = gr.
|
34 |
|
35 |
|
36 |
iface = gr.Interface(fn=translate_text, inputs=inputs, outputs=outputs, title="Language Translator")
|
|
|
28 |
language_options = ["Spanish", "French", "Italian", "Ukrainian"]
|
29 |
inputs = [
|
30 |
gr.inputs.Textbox(lines=5, label="Enter text to translate:"),
|
31 |
+
gr.inputs.Dropdown(choices=language_options, label="Select target language:"),
|
32 |
]
|
33 |
+
outputs = gr.outputs.Textbox(label="Translated text:")
|
34 |
|
35 |
|
36 |
iface = gr.Interface(fn=translate_text, inputs=inputs, outputs=outputs, title="Language Translator")
|