Download src/fall_detection/config.py from minhy112/FallKLTN: direct link, hf CLI and curl.
- Browser
- Download file 288 Bytes
-
https://huggingface.co/minhy112/FallKLTN/resolve/main/src/fall_detection/config.py
- Command line
-
hf download hf://minhy112/FallKLTN/src/fall_detection/config.py
-
curl -L -o config.py https://huggingface.co/minhy112/FallKLTN/resolve/main/src/fall_detection/config.py
288 Bytes
| from __future__ import annotations | |
| from pathlib import Path | |
| from typing import Any | |
| import yaml | |
| def load_config(path: str | Path) -> dict[str, Any]: | |
| """Load a YAML configuration file.""" | |
| with Path(path).open("r", encoding="utf-8") as file: | |
| return yaml.safe_load(file) | |