luis56125 commited on
Commit
61892a0
·
verified ·
1 Parent(s): 5bde15a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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.inputs.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()
 
 
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
+