Spaces:
Running
on
Zero
Running
on
Zero
Leonard Püttmann
commited on
Upload app.py
Browse files
app.py
CHANGED
@@ -63,8 +63,8 @@ def translate_text(input_text, direction):
|
|
63 |
# Create the Gradio interface
|
64 |
iface = gr.Interface(
|
65 |
fn=translate_text,
|
66 |
-
inputs=[gr.Textbox(lines=5, placeholder="Enter text to translate..."),
|
67 |
-
gr.Dropdown(choices=["en-it", "it-en"], label="Translation Direction")],
|
68 |
outputs=gr.Textbox(lines=5, label="Translation"),
|
69 |
description="This space is running on ZERO GPU. Initilization might take a couple of seconds the first time. This spaces uses the Quadrifoglio models for it-en and en-it text translation tasks."
|
70 |
)
|
|
|
63 |
# Create the Gradio interface
|
64 |
iface = gr.Interface(
|
65 |
fn=translate_text,
|
66 |
+
inputs=[gr.Textbox(lines=5, placeholder="Enter text to translate...", label="Input Text"),
|
67 |
+
gr.Dropdown(choices=["en-it", "it-en"], label="Translation Direction")],
|
68 |
outputs=gr.Textbox(lines=5, label="Translation"),
|
69 |
description="This space is running on ZERO GPU. Initilization might take a couple of seconds the first time. This spaces uses the Quadrifoglio models for it-en and en-it text translation tasks."
|
70 |
)
|