Spaces:
Sleeping
Sleeping
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() |