From a2bea5e300cd523546d321549034c0eedbcce402 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Fri, 1 Apr 2022 10:06:03 -0400 Subject: [PATCH] Fix install_models.py (2) --- install_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_models.py b/install_models.py index e610230..0976ef2 100755 --- a/install_models.py +++ b/install_models.py @@ -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)