Spaces:
Sleeping
Sleeping
Download src/utils.py from vorddd/GSLC-MLOps: direct link, hf CLI and curl.
- Browser
- Download file 227 Bytes
-
https://huggingface.co/spaces/vorddd/GSLC-MLOps/resolve/main/src/utils.py
- Command line
-
hf download hf://spaces/vorddd/GSLC-MLOps/src/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/vorddd/GSLC-MLOps/resolve/main/src/utils.py
227 Bytes
| from pathlib import Path | |
| ROOT = Path(__file__).resolve().parents[1] | |
| MODELS_DIR = Path("models") | |
| MODELS_DIR.mkdir(parents=True, exist_ok=True) | |
| MODEL_PATH = MODELS_DIR / "model.joblib" | |
| META_PATH = MODELS_DIR / "metadata.json" | |