Spaces:
Sleeping
Sleeping
File size: 485 Bytes
929938f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
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
|