Spaces:
Paused
Paused
Download run.py from Fred808/Desk-Back2: direct link, hf CLI and curl.
- Browser
- Download file 367 Bytes
-
https://huggingface.co/spaces/Fred808/Desk-Back2/resolve/main/run.py
- Command line
-
hf download hf://spaces/Fred808/Desk-Back2/run.py
-
curl -L -o run.py https://huggingface.co/spaces/Fred808/Desk-Back2/resolve/main/run.py
367 Bytes
| import os | |
| import sys | |
| from pathlib import Path | |
| # Add the project root directory to Python path | |
| root_dir = Path(__file__).resolve().parent | |
| sys.path.append(str(root_dir)) | |
| import uvicorn | |
| if __name__ == "__main__": | |
| uvicorn.run( | |
| "app.main:app", | |
| host="0.0.0.0", | |
| port=8000, | |
| reload=True, | |
| log_level="info" | |
| ) | |