Spaces:
Configuration error
Configuration error
| import logging | |
| def setup_logging(): | |
| logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(levelname)s - %(message)s") | |
| return logging.getLogger(__name__) | |
| def get_config(): | |
| with open("./config.yaml", "r") as f: | |
| import yaml | |
| config = yaml.safe_load(f) | |
| logger.info(f"Configuration loaded successfully: {config}") | |
| return config | |
| logger = setup_logging() | |
| load_config = get_config() |