Spaces:
Sleeping
Sleeping
Download old1-main_api.py from AI-tom/notebook-lotto-runner-api: direct link, hf CLI and curl.
- Browser
- Download file 365 Bytes
-
https://huggingface.co/spaces/AI-tom/notebook-lotto-runner-api/resolve/main/old1-main_api.py
- Command line
-
hf download hf://spaces/AI-tom/notebook-lotto-runner-api/old1-main_api.py
-
curl -L -o old1-main_api.py https://huggingface.co/spaces/AI-tom/notebook-lotto-runner-api/resolve/main/old1-main_api.py
365 Bytes
| # ============================================================================ | |
| # APPLICAZIONE API PURA - launcher uvicorn | |
| # ============================================================================ | |
| import uvicorn | |
| from api_main import app | |
| if __name__ == "__main__": | |
| uvicorn.run( | |
| app, | |
| host="0.0.0.0", | |
| port=8000 | |
| ) | |