Download server/app.py from KaustavMP/JalGuard: direct link, hf CLI and curl.
- Browser
- Download file 277 Bytes
-
https://huggingface.co/spaces/KaustavMP/JalGuard/resolve/main/server/app.py
- Command line
-
hf download hf://spaces/KaustavMP/JalGuard/server/app.py
-
curl -L -o app.py https://huggingface.co/spaces/KaustavMP/JalGuard/resolve/main/server/app.py
277 Bytes
| from __future__ import annotations | |
| import os | |
| import uvicorn | |
| from main import app | |
| def main() -> None: | |
| port = int(os.getenv("PORT", "7860")) | |
| uvicorn.run("server.app:app", host="0.0.0.0", port=port) | |
| __all__ = ["app", "main"] | |
| if __name__ == "__main__": | |
| main() | |