fkalpana commited on
Commit
2e4c29b
1 Parent(s): 6286822

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,8 +12,8 @@ def translate(text):
12
  # Define the Gradio interface
13
  iface = gr.Interface(
14
  fn=translate,
15
- inputs=gr.inputs.Textbox(lines=2, placeholder="Enter English text here..."),
16
- outputs="text",
17
  title="English to French Translation",
18
  description="This app uses the T5 model to translate English text to French. Type some text and press submit."
19
  )
 
12
  # Define the Gradio interface
13
  iface = gr.Interface(
14
  fn=translate,
15
+ inputs=gr.Textbox(lines=2, placeholder="Enter English text here..."),
16
+ outputs=gr.Textbox(), # Updated for Gradio version 4.0
17
  title="English to French Translation",
18
  description="This app uses the T5 model to translate English text to French. Type some text and press submit."
19
  )