Spaces:
Runtime error
Runtime error
Download server/app.py from NeoCodes-dev/rlm_forge: direct link, hf CLI and curl.
- Browser
- Download file 577 Bytes
-
https://huggingface.co/spaces/NeoCodes-dev/rlm_forge/resolve/main/server/app.py
- Command line
-
hf download hf://spaces/NeoCodes-dev/rlm_forge/server/app.py
-
curl -L -o app.py https://huggingface.co/spaces/NeoCodes-dev/rlm_forge/resolve/main/server/app.py
577 Bytes
| """FastAPI server entry point for RLM-Forge environment. | |
| This module provides the standardized OpenEnv server entry point. | |
| It wraps the rlm_forge.server.app module for multi-mode deployment. | |
| Usage: | |
| uv run server | |
| python -m server.app | |
| uvicorn server.app:app --host 0.0.0.0 --port 8000 | |
| """ | |
| from rlm_forge.server.app import app # noqa: F401 | |
| def main(host: str = "0.0.0.0", port: int = 8000): | |
| """Entry point for direct execution via uv run or python -m.""" | |
| import uvicorn | |
| uvicorn.run(app, host=host, port=port) | |
| if __name__ == "__main__": | |
| main() | |