Download app.py from Hellbound237/face-intel: direct link, hf CLI and curl.
- Browser
- Download file 486 Bytes
-
https://huggingface.co/Hellbound237/face-intel/resolve/main/app.py
- Command line
-
hf download hf://Hellbound237/face-intel/app.py
-
curl -L -o app.py https://huggingface.co/Hellbound237/face-intel/resolve/main/app.py
486 Bytes
| """ | |
| Application entry point. | |
| Run with: | |
| uvicorn app:app --host 0.0.0.0 --port 8000 --reload | |
| or directly: | |
| python app.py | |
| """ | |
| from __future__ import annotations | |
| import uvicorn | |
| from api.main import create_app | |
| from config.settings import settings | |
| app = create_app(settings) | |
| if __name__ == "__main__": | |
| uvicorn.run( | |
| "app:app", | |
| host=settings.host, | |
| port=settings.port, | |
| reload=settings.debug, | |
| log_level=settings.log_level.lower(), | |
| ) | |