ClothSeg / src /config.py
ahmedsharaf's picture
Deploy ClothSeg Streamlit App
b157024
Raw History Blame Contribute Delete
363 Bytes
import yaml
from pathlib import Path
CONFIG_PATH = Path(__file__).resolve().parent.parent / "config.yaml"
def load_config() -> dict:
"""Load configuration from YAML file"""
with open(CONFIG_PATH, 'r') as f:
return yaml.safe_load(f)
# Test
if __name__ == "__main__":
config = load_config()
print(config)
print(type(config))