Spaces:
Runtime error
Runtime error
Download app.py from Devdeshitha/samplecol: direct link, hf CLI and curl.
- Browser
- Download file 152 Bytes
-
https://huggingface.co/spaces/Devdeshitha/samplecol/resolve/main/app.py
- Command line
-
hf download hf://spaces/Devdeshitha/samplecol/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Devdeshitha/samplecol/resolve/main/app.py
152 Bytes
| import os | |
| from subprocess import Popen | |
| command = ["mercury", "run", f"0.0.0.0:{os.environ.get('PORT', 7860)}"] | |
| worker = Popen(command) | |
| worker.wait() |