Spaces:
Build error
Build error
Download app.py from hmb/test-space: direct link, hf CLI and curl.
- Browser
- Download file 332 Bytes
-
https://huggingface.co/spaces/hmb/test-space/resolve/main/app.py
- Command line
-
hf download hf://spaces/hmb/test-space/app.py
-
curl -L -o app.py https://huggingface.co/spaces/hmb/test-space/resolve/main/app.py
332 Bytes
| #!/usr/bin/env python | |
| import pathlib | |
| import gradio as gr | |
| paths = [path.as_posix() for path in sorted(pathlib.Path('images').glob('*'))] | |
| with gr.Blocks() as demo: | |
| gr.Gallery(value=paths).style( | |
| height='600px', | |
| object_fit='scale-down') | |
| demo.queue().launch() | |