Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
16 |
-
outputs=
|
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 |
)
|