Spaces:
Sleeping
Sleeping
Download server/app.py from aim143/support-queue-openenv: direct link, hf CLI and curl.
- Browser
- Download file 384 Bytes
-
https://huggingface.co/spaces/aim143/support-queue-openenv/resolve/main/server/app.py
- Command line
-
hf download hf://spaces/aim143/support-queue-openenv/server/app.py
-
curl -L -o app.py https://huggingface.co/spaces/aim143/support-queue-openenv/resolve/main/server/app.py
384 Bytes
| """Validator-friendly root app entrypoint.""" | |
| from __future__ import annotations | |
| import os | |
| import uvicorn | |
| from support_queue_env.server.app import app | |
| __all__ = ["app", "main"] | |
| def main() -> None: | |
| uvicorn.run( | |
| "server.app:app", | |
| host="0.0.0.0", | |
| port=int(os.getenv("PORT", "8000")), | |
| reload=False, | |
| ) | |
| if __name__ == "__main__": | |
| main() | |