Spaces:
Runtime error
Runtime error
Download app.py from iamudit02/attendx-api: direct link, hf CLI and curl.
- Browser
- Download file 319 Bytes
-
https://huggingface.co/spaces/iamudit02/attendx-api/resolve/main/app.py
- Command line
-
hf download hf://spaces/iamudit02/attendx-api/app.py
-
curl -L -o app.py https://huggingface.co/spaces/iamudit02/attendx-api/resolve/main/app.py
319 Bytes
| import os | |
| import uvicorn | |
| from app.main import app | |
| from app.core.config import settings | |
| if __name__ == "__main__": | |
| # Launch pure FastAPI server on Hugging Face default port 7860 | |
| uvicorn.run( | |
| "app.main:app", | |
| host="0.0.0.0", | |
| port=7860, | |
| reload=False, | |
| log_level="info" | |
| ) | |