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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -3,8 +3,8 @@ import gradio as gr
3
  def greet(source, translation1, translation2):
4
  return "Source: {} Translation 0: {} Translation 1: {}".format(source, translation1, translation2)
5
 
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()
 
3
  def greet(source, translation1, translation2):
4
  return "Source: {} Translation 0: {} Translation 1: {}".format(source, translation1, translation2)
5
 
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()