Download app.py from mihozzv/Exp2: direct link, hf CLI and curl.
- Browser
- Download file 259 Bytes
-
https://huggingface.co/spaces/mihozzv/Exp2/resolve/main/app.py
- Command line
-
hf download hf://spaces/mihozzv/Exp2/app.py
-
curl -L -o app.py https://huggingface.co/spaces/mihozzv/Exp2/resolve/main/app.py
259 Bytes
| from pathlib import Path | |
| import gradio as gr | |
| with gr.Blocks() as demo: | |
| gr.FileExplorer(value="str", root_dir="../../..")#, [gr.File]) | |
| gr.File(value="str")#, [gr.DownloadButton]) | |
| gr.DownloadButton("Down") | |
| demo.launch(allowed_paths=['.']) |