Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
7 |
-
translation1_textbox = gr.
|
8 |
-
translation2_textbox = gr.
|
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()
|