1
0
mirror of https://github.com/LibreTranslate/LibreTranslate.git synced 2024-11-17 13:00:11 +01:00

Fixed un-modified reference to app from a23a9fbd75

This commit is contained in:
Micha Gorelick 2023-01-03 12:40:05 +00:00
parent c17832a37c
commit cca7dd5eac

View File

@ -53,7 +53,7 @@ def check_and_install_models(force=False, load_only_lang_codes=None):
package.install_from_path(download_path) package.install_from_path(download_path)
# reload installed languages # reload installed languages
app.language.languages = translate.get_installed_languages() libretranslate.language.languages = translate.get_installed_languages()
print( print(
"Loaded support for %s languages (%s models total)!" "Loaded support for %s languages (%s models total)!"
% (len(translate.get_installed_languages()), len(available_packages)) % (len(translate.get_installed_languages()), len(available_packages))