mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-12 10:34:32 +08:00
8 lines
337 B
Python
8 lines
337 B
Python
|
import gradio as gr
|
||
|
|
||
|
greeter_1 = gr.Interface(lambda name: f"Hello {name}!", inputs="textbox", outputs=gr.Textbox(label="Greeter 1"))
|
||
|
greeter_2 = gr.Interface(lambda name: f"Greetings {name}!", inputs="textbox", outputs=gr.Textbox(label="Greeter 2"))
|
||
|
demo = gr.Parallel(greeter_1, greeter_2)
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
demo.launch()
|