Download run.py from ImgAuth/app: direct link, hf CLI and curl.
- Browser
- Download file 227 Bytes
-
https://huggingface.co/spaces/ImgAuth/app/resolve/main/run.py
- Command line
-
hf download hf://spaces/ImgAuth/app/run.py
-
curl -L -o run.py https://huggingface.co/spaces/ImgAuth/app/resolve/main/run.py
227 Bytes
| import subprocess, sys | |
| try: | |
| subprocess.run([sys.executable, "-m", "uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "5000"]) | |
| except KeyboardInterrupt: | |
| print("\nImgAuth AI server stopped.") | |
| sys.exit(0) | |