Spaces:
Sleeping
Sleeping
File size: 278 Bytes
28779c1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
from pathlib import Path
import yaml
CONFIG_DIR = Path(__file__).resolve().parent / "config"
def load_yaml(filename: str):
path = CONFIG_DIR / filename
with path.open() as f:
return yaml.safe_load(f)
def load_app_config():
return load_yaml("app.yaml")
|