Merge pull request #400 from argosopentech/argos-translate-1-8

Upgrade to Argos Translate 1.8
This commit is contained in:
Piero Toffanin 2023-02-06 00:26:23 +01:00 committed by GitHub
commit ea9654277b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

3
.gitignore vendored
View file

@ -1,3 +1,6 @@
# Ignore db/sessions/
db/
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]

View file

@ -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()

View file

@ -1,4 +1,4 @@
argostranslate==1.7.5
argostranslate==1.8.0
Flask==2.2.2
flask-swagger==0.2.14
flask-swagger-ui==4.11.1