diff --git a/extensions/tokenizers/src/main/python/huggingface_models.py b/extensions/tokenizers/src/main/python/huggingface_models.py index 7e5ada55ea9..549db378813 100644 --- a/extensions/tokenizers/src/main/python/huggingface_models.py +++ b/extensions/tokenizers/src/main/python/huggingface_models.py @@ -16,7 +16,7 @@ from argparse import Namespace from typing import List -from huggingface_hub import HfApi, ModelSearchArguments +from huggingface_hub import HfApi from huggingface_hub import hf_hub_download from huggingface_hub.hf_api import ModelInfo @@ -27,7 +27,7 @@ "ForMultipleChoice": "text-classification", "ForMaskedLM": "fill-mask", } -LANGUAGES = ModelSearchArguments().language +LANGUAGES = HfApi().get_model_tags()["language"] def get_lang_tags(model_info): diff --git a/extensions/tokenizers/src/main/python/requirements.txt b/extensions/tokenizers/src/main/python/requirements.txt index bf197b644ea..05ce0bc4833 100644 --- a/extensions/tokenizers/src/main/python/requirements.txt +++ b/extensions/tokenizers/src/main/python/requirements.txt @@ -1,4 +1,4 @@ huggingface_hub transformers -torch==1.11.0 +torch protobuf==3.20.2