Spaces:
Sleeping
Sleeping
Download run.py from co42/scatterplot_component_main: direct link, hf CLI and curl.
- Browser
- Download file 619 Bytes
-
https://huggingface.co/spaces/co42/scatterplot_component_main/resolve/main/run.py
- Command line
-
hf download hf://spaces/co42/scatterplot_component_main/run.py
-
curl -L -o run.py https://huggingface.co/spaces/co42/scatterplot_component_main/resolve/main/run.py
619 Bytes
| import gradio as gr | |
| from vega_datasets import data | |
| cars = data.cars() | |
| css = "footer {display: none !important;} .gradio-container {min-height: 0px !important;}" | |
| with gr.Blocks(css=css) as demo: | |
| gr.ScatterPlot(show_label=False, | |
| value=cars, | |
| x="Horsepower", | |
| y="Miles_per_Gallon", | |
| color="Origin", | |
| tooltip="Name", | |
| title="Car Data", | |
| y_title="Miles per Gallon", | |
| color_legend_title="Origin of Car").style(container=False) | |
| if __name__ == "__main__": | |
| demo.launch() |