Spaces:
Sleeping
Sleeping
Download server_runner.py from arywk-40/code-review-env: direct link, hf CLI and curl.
- Browser
- Download file 331 Bytes
-
https://huggingface.co/spaces/arywk-40/code-review-env/resolve/main/server_runner.py
- Command line
-
hf download hf://spaces/arywk-40/code-review-env/server_runner.py
-
curl -L -o server_runner.py https://huggingface.co/spaces/arywk-40/code-review-env/resolve/main/server_runner.py
331 Bytes
| """Console script entrypoint for serving the FastAPI app.""" | |
| from __future__ import annotations | |
| import os | |
| import uvicorn | |
| def main() -> None: | |
| host = os.getenv("HOST", "0.0.0.0") | |
| port = int(os.getenv("PORT", "7860")) | |
| uvicorn.run("app:app", host=host, port=port, reload=False) | |
| if __name__ == "__main__": | |
| main() | |