introvoyz041's picture
Upload folder using huggingface_hub
3f31c34 verified
raw
history blame contribute delete
298 Bytes
""" dynamically load settings
author baiyu
"""
import conf.global_settings as settings
class Settings:
def __init__(self, settings):
for attr in dir(settings):
if attr.isupper():
setattr(self, attr, getattr(settings, attr))
settings = Settings(settings)