Spaces:
Runtime error
Runtime error
Download src/api/config.py from val2e/sepsis_project: direct link, hf CLI and curl.
- Browser
- Download file 652 Bytes
-
https://huggingface.co/spaces/val2e/sepsis_project/resolve/main/src/api/config.py
- Command line
-
hf download hf://spaces/val2e/sepsis_project/src/api/config.py
-
curl -L -o config.py https://huggingface.co/spaces/val2e/sepsis_project/resolve/main/src/api/config.py
652 Bytes
| import os | |
| ONE_DAY_SEC = 24*60*60 | |
| ONE_WEEK_SEC = ONE_DAY_SEC*7 | |
| XGBOOST_URL = "https://raw.githubusercontent.com/valiantezabuku/Building-Machine-Learning-API-s-with-FastAPI-Collabo/develop/dev/models/xgboost.joblib" | |
| RANDOM_FOREST_URL = "https://raw.githubusercontent.com/valiantezabuku/Building-Machine-Learning-API-s-with-FastAPI-Collabo/develop/dev/models/random_forest.joblib" | |
| ENCODER_URL = "https://raw.githubusercontent.com/valiantezabuku/Building-Machine-Learning-API-s-with-FastAPI-Collabo/develop/dev/models/encoder.joblib" | |
| BASE_DIR = './' # Where Unicorn server runs from | |
| ENV_PATH = os.path.join(BASE_DIR, 'src/api/.env') | |