Update app.py
Browse files
app.py
CHANGED
|
@@ -18,10 +18,11 @@ def translate(text):
|
|
| 18 |
|
| 19 |
# Crear la interfaz de Gradio
|
| 20 |
interface = gr.Interface(fn=translate,
|
| 21 |
-
inputs=gr.
|
| 22 |
outputs="text",
|
| 23 |
title="MBart Large 50 English to Spanish Translation",
|
| 24 |
description="This interface translates English text to Spanish using the MBart large model.")
|
| 25 |
|
| 26 |
# Lanzar la interfaz
|
| 27 |
interface.launch()
|
|
|
|
|
|
| 18 |
|
| 19 |
# Crear la interfaz de Gradio
|
| 20 |
interface = gr.Interface(fn=translate,
|
| 21 |
+
inputs=gr.Textbox(lines=5, placeholder="Enter English text here..."),
|
| 22 |
outputs="text",
|
| 23 |
title="MBart Large 50 English to Spanish Translation",
|
| 24 |
description="This interface translates English text to Spanish using the MBart large model.")
|
| 25 |
|
| 26 |
# Lanzar la interfaz
|
| 27 |
interface.launch()
|
| 28 |
+
|