Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wonbeom12 opened this issue Apr 24, 2024 · 0 comments
Open

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

wonbeom12 opened this issue Apr 24, 2024 · 0 comments

Comments

@wonbeom12
Copy link

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

@wonbeom12 wonbeom12 changed the title 실행 안되는분들 실행 안되는분들 해결법 Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant