gradio/demo/barplot_component/run.ipynb
Archit-Kohli 921716f618
Fixed visibility issue for all notebooks on GitHub (#5917)
* fixed visibility error in notebooks in github

* Delete fixNotebooks.py

deleted script used to fix notebooks

* Update generate_notebooks.py

fixed a small bug that prevented visibility of notebooks in GitHub
2023-10-15 18:16:57 -07:00

1.0 KiB

Gradio Demo: barplot_component

In [ ]:
!pip install -q gradio 
In [ ]:
import gradio as gr
import pandas as pd

simple = pd.DataFrame(
    {
        "item": ["A", "B", "C", "D", "E", "F", "G", "H", "I"],
        "inventory": [28, 55, 43, 91, 81, 53, 19, 87, 52],
    }
)

with gr.Blocks() as demo:
    gr.BarPlot(
        value=simple,
        x="item",
        y="inventory",
        title="Simple Bar Plot",
        container=False,
    )

if __name__ == "__main__":
    demo.launch()