NLL_Interface / util /config_util.py
bytedancerneat's picture
Upload folder using huggingface_hub
929938f verified
raw
history blame
485 Bytes
import os
import json
import logging
import bytedenv
import configparser
ROOT_PATH = os.path.split(os.path.split(os.path.abspath(__file__))[0])[0]
def read_config():
config_file = ROOT_PATH + "\conf\config.ini"
config_ini = configparser.ConfigParser()
config_ini.read(config_file)
model_name = "DouBao128Pro"
return config_ini
def read_json(filepath):
with open(filepath, 'r') as f:
result = json.load(f)
return result