Skip to content

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

Description

@wonbeom12

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions