Spaces:
Paused
Paused
Download app.py from Krebzonide/DataFrameTest: direct link, hf CLI and curl.
- Browser
- Download file 269 Bytes
-
https://huggingface.co/spaces/Krebzonide/DataFrameTest/resolve/main/app.py
- Command line
-
hf download hf://spaces/Krebzonide/DataFrameTest/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Krebzonide/DataFrameTest/resolve/main/app.py
269 Bytes
| import gradio as gr | |
| with gr.Blocks() as demo: | |
| df = gr.Dataframe( | |
| type="numpy", | |
| headers=["name"], | |
| datatype=["str"], | |
| row_count=(4, "fixed"), | |
| col_count=(1, "fixed")) | |
| btn = gr.Button() | |
| btn.click(print, df) | |
| demo.launch() |