Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,10 +5,10 @@ model_name = "Helsinki-NLP/opus-mt-en-es"
|
|
| 5 |
model = gr.load(model_name, src="models")
|
| 6 |
|
| 7 |
# Define the input component (text box)
|
| 8 |
-
text_input = gr.inputs.
|
| 9 |
|
| 10 |
# Define the output component (text box)
|
| 11 |
-
text_output = gr.outputs.
|
| 12 |
|
| 13 |
# Create the Gradio interface
|
| 14 |
iface = gr.Interface(
|
|
|
|
| 5 |
model = gr.load(model_name, src="models")
|
| 6 |
|
| 7 |
# Define the input component (text box)
|
| 8 |
+
text_input = gr.inputs.Text(lines=5, label="Enter text in English") # Use Text instead of Textbox
|
| 9 |
|
| 10 |
# Define the output component (text box)
|
| 11 |
+
text_output = gr.outputs.Text(label="Translated text in Spanish") # Use Text instead of Textbox
|
| 12 |
|
| 13 |
# Create the Gradio interface
|
| 14 |
iface = gr.Interface(
|