Download app.py from bbbipul/nirnoy: direct link, hf CLI and curl.
- Browser
- Download file 431 Bytes
-
https://huggingface.co/spaces/bbbipul/nirnoy/resolve/main/app.py
- Command line
-
hf download hf://spaces/bbbipul/nirnoy/app.py
-
curl -L -o app.py https://huggingface.co/spaces/bbbipul/nirnoy/resolve/main/app.py
431 Bytes
| """Nirnoy try-it page (ZeroGPU). The app and the models are private: this loader fetches the app with the Space's token.""" | |
| import os | |
| import sys | |
| import spaces # noqa: F401 (ZeroGPU: imported before torch) | |
| from huggingface_hub import snapshot_download | |
| sys.path.insert(0, snapshot_download(os.environ.get("APP_REPO", "bbbipul/nirnoy-space-app"), token=os.environ["HF_TOKEN"])) | |
| import nirnoy_app # noqa: E402 | |
| nirnoy_app.main() | |