Download server/app.py from anonymousDevil/cognitive-load-manager: direct link, hf CLI and curl.
- Browser
- Download file 637 Bytes
-
https://huggingface.co/spaces/anonymousDevil/cognitive-load-manager/resolve/refs%2Fpr%2F1/server/app.py
- Command line
-
hf download hf://spaces/anonymousDevil/cognitive-load-manager@refs/pr/1/server/app.py
-
curl -L -o app.py https://huggingface.co/spaces/anonymousDevil/cognitive-load-manager/resolve/refs%2Fpr%2F1/server/app.py
637 Bytes
| """ | |
| server/app.py — single entry point for CLM OpenEnv server. | |
| Imports the FastAPI app built in backend/main.py and exposes it for: | |
| - Dockerfile: uvicorn server.app:app --host 0.0.0.0 --port 7860 | |
| - openenv.yaml: app: server.app:app | |
| All route logic lives in backend/main.py. This file is intentionally thin. | |
| """ | |
| import sys | |
| import os | |
| sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | |
| from backend.main import app # single source of truth for the FastAPI app | |
| __all__ = ["app"] | |
| def main(): | |
| import uvicorn | |
| uvicorn.run(app, host="0.0.0.0", port=7860) | |
| if __name__ == "__main__": | |
| main() | |