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