Leonard Püttmann commited on
Commit
bdb369b
·
verified ·
1 Parent(s): 23bdd0d

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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")], label="Input Text",
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
  )