Download app.py from hHoai/api: direct link, hf CLI and curl.
- Browser
- Download file 259 Bytes
-
https://huggingface.co/spaces/hHoai/api/resolve/main/app.py
- Command line
-
hf download hf://spaces/hHoai/api/app.py
-
curl -L -o app.py https://huggingface.co/spaces/hHoai/api/resolve/main/app.py
259 Bytes
| import os | |
| import uvicorn | |
| # from aap_utils import register_demo | |
| # # Đăng ký demo nếu cần | |
| # register_demo() | |
| if __name__ == "__main__": | |
| port = int(os.environ.get("PORT", 8000)) | |
| uvicorn.run("app.main:app", host="0.0.0.0", port=port, reload=True) |