Spaces:
Sleeping
Sleeping
File size: 427 Bytes
4a1948c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import yaml
import os
def load_config(config_name="config.yaml"):
"""
Load configuration from a YAML file.
Args:
config_path: Path to the YAML configuration file.
Returns:
Dictionary with the configuration data.
"""
from config.data_paths import ROOT_DIR
with open(os.path.join(ROOT_DIR, 'config', config_name), "r") as file:
config = yaml.safe_load(file)
return config
|