Skip to content
Snippets Groups Projects
Unverified Commit a2bea5e3 authored by Piero Toffanin's avatar Piero Toffanin Committed by GitHub
Browse files

Fix install_models.py (2)

parent 8cc03572
No related branches found
No related tags found
No related merge requests found
......@@ -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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment