gradio/demo/tabbed_interface_lite/run.py
Ali Abdalla 0312c990fb
Playground v1 (#5386)
* 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>
2023-10-19 10:56:10 -07:00

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()