Spaces:
Sleeping
Sleeping
Download run.py from gradio/lineplot_component_main: direct link, hf CLI and curl.
- Browser
- Download file 351 Bytes
-
https://huggingface.co/spaces/gradio/lineplot_component_main/resolve/afa2d3db832fd39de519eca33dd07d06bb269e27/run.py
- Command line
-
hf download hf://spaces/gradio/lineplot_component_main@afa2d3db832fd39de519eca33dd07d06bb269e27/run.py
-
curl -L -o run.py https://huggingface.co/spaces/gradio/lineplot_component_main/resolve/afa2d3db832fd39de519eca33dd07d06bb269e27/run.py
351 Bytes
| import gradio as gr | |
| from vega_datasets import data | |
| with gr.Blocks() as demo: | |
| gr.LinePlot( | |
| data.stocks(), | |
| x="date", | |
| y="price", | |
| color="symbol", | |
| title="Stock Prices", | |
| tooltip=["date", "price", "symbol"], | |
| height=300, | |
| container=False, | |
| ) | |
| if __name__ == "__main__": | |
| demo.launch() | |