Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
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()
|