Spaces:
Build error
Build error
Download api/routes/runtime.py from abinazebinoy/bharatgraph: direct link, hf CLI and curl.
- Browser
- Download file 519 Bytes
-
https://huggingface.co/spaces/abinazebinoy/bharatgraph/resolve/main/api/routes/runtime.py
- Command line
-
hf download hf://spaces/abinazebinoy/bharatgraph/api/routes/runtime.py
-
curl -L -o runtime.py https://huggingface.co/spaces/abinazebinoy/bharatgraph/resolve/main/api/routes/runtime.py
519 Bytes
| """ | |
| BharatGraph - Phase 31: /runtime endpoint | |
| Returns current hardware detection results and active profile settings. | |
| Pure ASCII. | |
| """ | |
| from fastapi import APIRouter | |
| from config.runtime_profile import PROFILE | |
| router = APIRouter() | |
| def get_runtime_profile(): | |
| """ | |
| Returns the auto-detected hardware profile and active settings. | |
| Useful for debugging deployment performance issues. | |
| Force a profile by setting: BHARATGRAPH_PROFILE=low|medium|high | |
| """ | |
| return PROFILE.to_dict() | |