Spaces:
Runtime error
Runtime error
Jesus Carrasco
commited on
Commit
·
41f74ad
1
Parent(s):
13081ab
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def translate_text(text, target_language):
|
|
27 |
# Define the Gradio interface
|
28 |
language_options = ["Spanish", "French", "Italian", "Ukrainian"]
|
29 |
inputs = [
|
30 |
-
gr.
|
31 |
gr.component.Dropdown(choices=language_options, label="Select target language:"),
|
32 |
]
|
33 |
outputs = gr.component.Textbox(label="Translated text:")
|
|
|
27 |
# Define the Gradio interface
|
28 |
language_options = ["Spanish", "French", "Italian", "Ukrainian"]
|
29 |
inputs = [
|
30 |
+
gr.inputs.Textbox(lines=5, label="Enter text to translate:"),
|
31 |
gr.component.Dropdown(choices=language_options, label="Select target language:"),
|
32 |
]
|
33 |
outputs = gr.component.Textbox(label="Translated text:")
|