2020-12-20 18:55:56 +02:00
|
|
|
#!/usr/bin/env python
|
2022-03-31 16:21:20 +02:00
|
|
|
import argparse
|
2021-03-11 13:33:54 +02:00
|
|
|
from app.init import check_and_install_models, check_and_install_transliteration
|
2020-12-20 00:40:37 +02:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2022-03-31 16:21:20 +02:00
|
|
|
parser = argparse.ArgumentParser()
|
|
|
|
parser.add_argument("--load_only_lang_codes", type=str, default="")
|
|
|
|
args = parser.parse_args()
|
|
|
|
lang_codes = args.load_only_lang_codes.split(",") or None
|
|
|
|
check_and_install_models(force=True, load_only_lang_codes=lang_codes)
|
2021-05-18 05:51:33 +02:00
|
|
|
check_and_install_transliteration(force=True)
|