ibraheemmoosa commited on
Commit
a4e2651
·
verified ·
1 Parent(s): 0daff2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -6,5 +6,6 @@ def greet(source, translation1, translation2):
6
  source_textbox = gr.Textbox(label="Source", info="Source Sentence", value="Le chat est sur la tapis.")
7
  translation1_textbox = gr.Textbox(label="Translation 1", info="Translation 1", value="The cat is on the bed.")
8
  translation2_textbox = gr.Textbox(label="Translation 2", info="Translation 2", value="The cat is on the carpet.")
9
- iface = gr.Interface(fn=greet, inputs=[source_textbox, translation1_textbox, translation2_textbox], outputs="Prompt")
 
10
  iface.launch()
 
6
  source_textbox = gr.Textbox(label="Source", info="Source Sentence", value="Le chat est sur la tapis.")
7
  translation1_textbox = gr.Textbox(label="Translation 1", info="Translation 1", value="The cat is on the bed.")
8
  translation2_textbox = gr.Textbox(label="Translation 2", info="Translation 2", value="The cat is on the carpet.")
9
+ output = gr.Textbox()
10
+ iface = gr.Interface(fn=greet, inputs=[source_textbox, translation1_textbox, translation2_textbox], outputs="text")
11
  iface.launch()