File size: 289 Bytes
e317d56
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""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