mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-27 01:40:20 +08:00
0312c990fb
* changes * broken * working * working * add changeset * useing gradio code component * rework demos * lockfile * fix anyio error * add changeset * changes * many changes * add changeset * lockfile * demos * new * fix load issue * sizing and spacing * gutters not transparent * styling * mobile responsive * fix meta image * remove ffmpeg demos * use latest lite * bring back demo names * more mobile responsive * latest cdn --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
9 lines
291 B
Python
9 lines
291 B
Python
import gradio as gr
|
|
|
|
hello_world = gr.Interface(lambda name: "Hello " + name, "text", "text")
|
|
bye_world = gr.Interface(lambda name: "Bye " + name, "text", "text")
|
|
|
|
demo = gr.TabbedInterface([hello_world, bye_world], ["Hello World", "Bye World"])
|
|
|
|
if __name__ == "__main__":
|
|
demo.launch() |