Spaces:
Sleeping
Sleeping
Download src/data/utils.py from rajvivan/CUD-Traffic-AI: direct link, hf CLI and curl.
- Browser
- Download file 261 Bytes
-
https://huggingface.co/spaces/rajvivan/CUD-Traffic-AI/resolve/main/src/data/utils.py
- Command line
-
hf download hf://spaces/rajvivan/CUD-Traffic-AI/src/data/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/rajvivan/CUD-Traffic-AI/resolve/main/src/data/utils.py
261 Bytes
| from __future__ import annotations | |
| from pathlib import Path | |
| from typing import Any | |
| import yaml | |
| def load_config(config_path: str | Path = "config.yaml") -> dict[str, Any]: | |
| with open(config_path, "r", encoding="utf-8") as f: | |
| return yaml.safe_load(f) | |