mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-05-04 20:30:39 +00:00
Upgrade to Argos Translate 1.8
Uses argostranslate.package.Package.install which deletes the cached package file after it has been installed
This commit is contained in:
parent
27cae03e97
commit
c404885d5d
3 changed files with 5 additions and 3 deletions
|
@ -49,8 +49,7 @@ def check_and_install_models(force=False, load_only_lang_codes=None):
|
|||
"Downloading %s (%s) ..."
|
||||
% (available_package, available_package.package_version)
|
||||
)
|
||||
download_path = available_package.download()
|
||||
package.install_from_path(download_path)
|
||||
available_package.install()
|
||||
|
||||
# reload installed languages
|
||||
libretranslate.language.languages = translate.get_installed_languages()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue