Spaces:
Sleeping
Sleeping
| """ | |
| This file loads config from config.yaml | |
| """ | |
| import yaml | |
| def load_config(path): | |
| """ | |
| Function to load config from config.yaml | |
| """ | |
| try: | |
| with open(path, "r") as file: | |
| config = yaml.safe_load(file) | |
| return config | |
| except FileNotFoundError: | |
| raise FileNotFoundError("Config file not found") | |
| except Exception as e: | |
| raise e | |