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:
parent
c17832a37c
commit
cca7dd5eac
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user