From cca7dd5eac1d50c5c1efae752d93b74be7becad2 Mon Sep 17 00:00:00 2001 From: Micha Gorelick Date: Tue, 3 Jan 2023 12:40:05 +0000 Subject: [PATCH] Fixed un-modified reference to app from a23a9fbd7528d7f37dc2b88114f119e339cadc4d --- libretranslate/init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretranslate/init.py b/libretranslate/init.py index d0cb23e..24706b8 100644 --- a/libretranslate/init.py +++ b/libretranslate/init.py @@ -53,7 +53,7 @@ def check_and_install_models(force=False, load_only_lang_codes=None): package.install_from_path(download_path) # reload installed languages - app.language.languages = translate.get_installed_languages() + libretranslate.language.languages = translate.get_installed_languages() print( "Loaded support for %s languages (%s models total)!" % (len(translate.get_installed_languages()), len(available_packages))