Spaces:
Runtime error
Runtime error
File size: 314 Bytes
54eb4f7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import yaml
def load_config(config_path: str) -> dict:
"""
Load configuration from a YAML file.
Args:
config_path (str): Path to the YAML configuration file.
Returns:
dict: Loaded configuration.
"""
with open(config_path, 'r') as file:
return yaml.safe_load(file) |