mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-06-03 05:10:20 +00:00
Named volume for db, --update-models arg
This commit is contained in:
parent
5285697203
commit
959f4638cc
6 changed files with 20 additions and 18 deletions
|
@ -5,9 +5,9 @@ from argostranslate import package, translate
|
|||
import app.language
|
||||
|
||||
|
||||
def boot(load_only=None):
|
||||
def boot(load_only=None, update_models=False):
|
||||
try:
|
||||
check_and_install_models(load_only_lang_codes=load_only)
|
||||
check_and_install_models(force=update_models, load_only_lang_codes=load_only)
|
||||
except Exception as e:
|
||||
print("Cannot update models (normal if you're offline): %s" % str(e))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue