mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-09 02:00:44 +08:00
600722c218
* Add examples for series and parallel * Add ML demos for interface and load
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() |