CUD-Traffic-AI / src /data /utils.py
Rajeev Ranjan Pandey
Refine UI and fix model selection bugs
e078b1d
raw
history blame contribute delete
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)