mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-12-22 07:06:33 +00:00
Fix install_models.py (2)
This commit is contained in:
parent
8cc03572e5
commit
a2bea5e300
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ if __name__ == "__main__":
|
|||
parser.add_argument("--load_only_lang_codes", type=str, default="")
|
||||
args = parser.parse_args()
|
||||
lang_codes = args.load_only_lang_codes.split(",")
|
||||
if len(lang_codes) == 0:
|
||||
if len(lang_codes) == 0 or lang_codes[0] == '':
|
||||
lang_codes = None
|
||||
check_and_install_models(force=True, load_only_lang_codes=lang_codes)
|
||||
check_and_install_transliteration(force=True)
|
||||
|
|
Loading…
Reference in a new issue