AakashEngineer commited on
Commit
9aa5274
·
verified ·
1 Parent(s): d2dd70a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.Textbox(lines=5, label="Enter text in English")
9
 
10
  # Define the output component (text box)
11
- text_output = gr.outputs.Textbox(label="Translated text in Spanish")
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(