Spaces:
Sleeping
Sleeping
Download utils/config_loader.py from Swaraj2003/smarttrip_ai: direct link, hf CLI and curl.
- Browser
- Download file 210 Bytes
-
https://huggingface.co/spaces/Swaraj2003/smarttrip_ai/resolve/main/utils/config_loader.py
- Command line
-
hf download hf://spaces/Swaraj2003/smarttrip_ai/utils/config_loader.py
-
curl -L -o config_loader.py https://huggingface.co/spaces/Swaraj2003/smarttrip_ai/resolve/main/utils/config_loader.py
210 Bytes
| import yaml | |
| import os | |
| def load_config(config_path: str = "config/config.yaml") -> dict: | |
| with open(config_path, "r") as file: | |
| config = yaml.safe_load(file) | |
| # print(config) | |
| return config | |