Download app.py from dbatcode28/supportOpsEnv: direct link, hf CLI and curl.
- Browser
- Download file 345 Bytes
-
https://huggingface.co/dbatcode28/supportOpsEnv/resolve/main/app.py
- Command line
-
hf download hf://dbatcode28/supportOpsEnv/app.py
-
curl -L -o app.py https://huggingface.co/dbatcode28/supportOpsEnv/resolve/main/app.py
345 Bytes
| from __future__ import annotations | |
| import os | |
| from server.app import app | |
| def main(host: str = "0.0.0.0", port: int | None = None) -> None: | |
| import uvicorn | |
| resolved_port = port or int(os.getenv("PORT", "7860")) | |
| uvicorn.run(app, host=host, port=resolved_port) | |
| def uv_main(): | |
| return app | |
| if __name__ == "__main__": | |
| main() | |