File size: 416 Bytes
0ad74ed |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
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()
|