Download app.py from hysts-debug/dataframe-with-initial-values: direct link, hf CLI and curl.
- Browser
- Download file 230 Bytes
-
https://huggingface.co/spaces/hysts-debug/dataframe-with-initial-values/resolve/main/app.py
- Command line
-
hf download hf://spaces/hysts-debug/dataframe-with-initial-values/app.py
-
curl -L -o app.py https://huggingface.co/spaces/hysts-debug/dataframe-with-initial-values/resolve/main/app.py
230 Bytes
| #!/usr/bin/env python | |
| import gradio as gr | |
| import pandas as pd | |
| df_orig = pd.DataFrame([['aaa', 12345]], columns=['a', 'b']) | |
| with gr.Blocks() as demo: | |
| df = gr.Dataframe(value=df_orig, interactive=False) | |
| demo.queue().launch() | |