CoolFace
Apppublic

mtyrrell/chatfed_retriever

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
utils.py16 linesDownload Raw Back to app
1import configparser2import logging3 4def getconfig(configfile_path: str):5    """6    Read the config file7    Params8    ----------------9    configfile_path: file path of .cfg file10    """11    config = configparser.ConfigParser()12    try:13        config.read_file(open(configfile_path))14        return config15    except:16        logging.warning("config file not found")