def load_config(config_fn, lowercase=False):
    """Load configurations into a dictionary

    Args:
        config_fn (str): path to configuration file
        lowercase (bool, optional): _description_. Defaults to False.

    Returns:
        JsonHParams: an object that stores configurations
    """
    config_ = _load_config(config_fn, lowercase=lowercase)
    # create an JsonHParams object with configuration dict
    cfg = JsonHParams(**config_)
    return cfg
Load configurations into a dictionary

Args:
config_fn (str): path to configuration file
lowercase (bool, optional): _description_. Defaults to False.

Returns:
JsonHParams: an object that stores configurations
models/tts/debatts/utils/util.py