Download app.py from hysts-debug/plotly-custom-css: direct link, hf CLI and curl.
- Browser
- Download file 414 Bytes
-
https://huggingface.co/spaces/hysts-debug/plotly-custom-css/resolve/main/app.py
- Command line
-
hf download hf://spaces/hysts-debug/plotly-custom-css/app.py
-
curl -L -o app.py https://huggingface.co/spaces/hysts-debug/plotly-custom-css/resolve/main/app.py
414 Bytes
| #!/usr/bin/env python | |
| import gradio as gr | |
| import numpy as np | |
| import pandas as pd | |
| import plotly.express as px | |
| np.random.seed(0) | |
| data = np.random.normal(size=(1000, 3)) | |
| data[0, :] = 0 | |
| data = data.cumsum(axis=0) | |
| df = pd.DataFrame(data, columns=["a", "b", "c"]) | |
| with gr.Blocks(css="style.css") as demo: | |
| for _ in range(3): | |
| gr.Plot(value=px.line(df)) | |
| if __name__ == "__main__": | |
| demo.queue().launch() | |