mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-27 01:40:20 +08:00
c06b4eab16
* Add code - first draft * Getting better * Work out the bugs * Fix docstrings * CHANGELOG * Fix test * Generate notebooks * Add unit test * Undo website package.lock * Fix demo * Fix notebooks * Fix docstrings * Improve example in CHANGELOG * Address comments + feedback --------- Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
19 lines
441 B
Python
19 lines
441 B
Python
import gradio as gr
|
|
|
|
from scatter_plot_demo import scatter_plot
|
|
from line_plot_demo import line_plot
|
|
from bar_plot_demo import bar_plot
|
|
|
|
|
|
with gr.Blocks() as demo:
|
|
with gr.Tabs():
|
|
with gr.TabItem("Scatter Plot"):
|
|
scatter_plot.render()
|
|
with gr.TabItem("Line Plot"):
|
|
line_plot.render()
|
|
with gr.TabItem("Bar Plot"):
|
|
bar_plot.render()
|
|
|
|
if __name__ == "__main__":
|
|
demo.launch()
|