mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-24 10:54:04 +08:00
921716f618
* 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
1.0 KiB
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()