Download src/api/state.py from devrup404/SignalMod: direct link, hf CLI and curl.
- Browser
- Download file 289 Bytes
-
https://huggingface.co/spaces/devrup404/SignalMod/resolve/21e8095f146314dd87fce3a1f63b090cf54ec99d/src/api/state.py
- Command line
-
hf download hf://spaces/devrup404/SignalMod@21e8095f146314dd87fce3a1f63b090cf54ec99d/src/api/state.py
-
curl -L -o state.py https://huggingface.co/spaces/devrup404/SignalMod/resolve/21e8095f146314dd87fce3a1f63b090cf54ec99d/src/api/state.py
289 Bytes
| """Application state shared across routes.""" | |
| from pathlib import Path | |
| PROJECT_ROOT = Path(__file__).resolve().parents[2] | |
| _state: dict = { | |
| "service": None, | |
| "model_name": None, | |
| "startup_time": None, | |
| "predictions_served": 0, | |
| } | |
| def get_state() -> dict: | |
| return _state | |