ChatTeach / FreeGPT

Use GPT 3.5 / 4 Free - No API Key Need
https://www.youtube.com/channel/UC1weYqfDgX0ALlNOSzcyblQ?sub_confirmation=1
GNU General Public License v3.0
229 stars 94 forks source link

실행 안되는분들 해결법 #12

Open wonbeom12 opened 6 months ago

wonbeom12 commented 6 months ago

run.py PATH = os.path.dirname(os.path.realpath(file)).replace(os.sep, "/") config = load(open(f'{PATH}/config.json', 'r'))

babel.py def get_languages_from_dir(directory): """Return a list of directory names in the given directory."""

PATH = os.path.dirname(os.path.realpath(__file__)).replace(os.sep, "/").replace("freegpt-webui-v2/server", "freegpt-webui-v2")
directory = f"{PATH}/{directory}"

return [name for name in os.listdir(directory)
        if os.path.isdir(os.path.join(directory, name))]

BABEL_DEFAULT_LOCALE = 'ko_KR' BABEL_LANGUAGES = [BABEL_DEFAULT_LOCALE]

good