Download server/app.py from dbatcode28/supportOpsEnv: direct link, hf CLI and curl.
- Browser
- Download file 700 Bytes
-
https://huggingface.co/dbatcode28/supportOpsEnv/resolve/bd671557cb975446faa7f72a33a8b5f61c832253/server/app.py
- Command line
-
hf download hf://dbatcode28/supportOpsEnv@bd671557cb975446faa7f72a33a8b5f61c832253/server/app.py
-
curl -L -o app.py https://huggingface.co/dbatcode28/supportOpsEnv/resolve/bd671557cb975446faa7f72a33a8b5f61c832253/server/app.py
700 Bytes
| from __future__ import annotations | |
| from fastapi import FastAPI | |
| app = FastAPI( | |
| title="SupportOpsEnv Server", | |
| description="Minimal server entry point for OpenEnv validation and deployment hooks.", | |
| version="0.1.0", | |
| ) | |
| def root() -> dict[str, str]: | |
| return { | |
| "name": "support-ops-env", | |
| "status": "ok", | |
| "message": "SupportOpsEnv server entry point is available.", | |
| } | |
| def health() -> dict[str, str]: | |
| return {"status": "healthy"} | |
| def main(host: str = "0.0.0.0", port: int = 8000) -> None: | |
| import uvicorn | |
| uvicorn.run(app, host=host, port=port) | |
| def uv_main(): | |
| return app | |
| if __name__ == "__main__": | |
| main() | |