Spaces:
Sleeping
Sleeping
File size: 632 Bytes
5292e0d 98f311a 5292e0d 0daff2d 37f8b8c 5292e0d |
1 2 3 4 5 6 7 8 9 10 |
import gradio as gr
def greet(source, translation1, translation2):
return "Source: {} Translation 0: {} Translation 1: {}".format(source, translation1, translation2)
source_textbox = gr.Textbox(label="Source", info="Source Sentence", value="Le chat est sur la tapis.")
translation1_textbox = gr.Textbox(label="Translation 1", info="Translation 1", value="The cat is on the bed.")
translation2_textbox = gr.Textbox(label="Translation 2", info="Translation 2", value="The cat is on the carpet.")
iface = gr.Interface(fn=greet, inputs=[source_textbox, translation1_textbox, translation2_textbox], outputs="Prompt")
iface.launch() |