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

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -64,8 +64,9 @@ def translate_text(input_text, direction):
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
  )
70
 
71
  # Launch the 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
  )
71
 
72
  # Launch the interface