Spaces:
Sleeping
Sleeping
Download app.py from soilkon/stem-restoration: direct link, hf CLI and curl.
- Browser
- Download file 337 Bytes
-
https://huggingface.co/spaces/soilkon/stem-restoration/resolve/main/app.py
- Command line
-
hf download hf://spaces/soilkon/stem-restoration/app.py
-
curl -L -o app.py https://huggingface.co/spaces/soilkon/stem-restoration/resolve/main/app.py
337 Bytes
| # HF Space entry. Paths resolve repo-relative (see restoflow/app.py). | |
| import os | |
| os.environ.setdefault('RESTOFLOW_DEVICE', 'cpu') | |
| from restoflow.app import build_ui, models | |
| import threading | |
| demo = build_ui() | |
| threading.Thread(target=models, daemon=True).start() | |
| demo.queue().launch(server_name='0.0.0.0', server_port=7860, ssr_mode=False) | |