Spaces:
Sleeping
Sleeping
Download app.py from webflow97/deployment-taskflow: direct link, hf CLI and curl.
- Browser
- Download file 343 Bytes
-
https://huggingface.co/spaces/webflow97/deployment-taskflow/resolve/main/app.py
- Command line
-
hf download hf://spaces/webflow97/deployment-taskflow/app.py
-
curl -L -o app.py https://huggingface.co/spaces/webflow97/deployment-taskflow/resolve/main/app.py
343 Bytes
| """ | |
| Hugging Face Spaces entry point for Smart Escalation API. | |
| This file is required for Hugging Face Spaces deployment. | |
| """ | |
| import os | |
| import uvicorn | |
| from src.main import app | |
| if __name__ == "__main__": | |
| # Hugging Face Spaces uses port 7860 by default | |
| port = int(os.getenv("PORT", 7860)) | |
| uvicorn.run(app, host="0.0.0.0", port=port) | |