Spaces:
Sleeping
Sleeping
Download app.py from iiioooiso6205/Log-processor: direct link, hf CLI and curl.
- Browser
- Download file 306 Bytes
-
https://huggingface.co/spaces/iiioooiso6205/Log-processor/resolve/main/app.py
- Command line
-
hf download hf://spaces/iiioooiso6205/Log-processor/app.py
-
curl -L -o app.py https://huggingface.co/spaces/iiioooiso6205/Log-processor/resolve/main/app.py
306 Bytes
| """ | |
| Entrypoint. Runs the FastAPI app in `backend.main` using Uvicorn. | |
| Use this as the single entry point for local runs and Hugging Face Spaces. | |
| """ | |
| import os | |
| import uvicorn | |
| if __name__ == '__main__': | |
| port = int(os.getenv('PORT', 7860)) | |
| uvicorn.run('backend.main:app', host='0.0.0.0', port=port) | |