From e5823d6964c91f72d65196cdbb736482cc6e2b22 Mon Sep 17 00:00:00 2001 From: Siddharth Singh Rana <91743459+NIXBLACK11@users.noreply.github.com> Date: Tue, 14 Nov 2023 17:31:34 +0530 Subject: [PATCH] Update validate_models.py --- laser_encoders/validate_models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/laser_encoders/validate_models.py b/laser_encoders/validate_models.py index c9dac6c9..c39aa955 100644 --- a/laser_encoders/validate_models.py +++ b/laser_encoders/validate_models.py @@ -89,12 +89,12 @@ def download_laser2(self): @pytest.mark.parametrize("lang", LASER3_LANGUAGE) def test_validate_language_models_and_tokenize_mock_laser3(lang): downloader = MockLaserModelDownloader(model_dir=CACHE_DIR) - + try: downloader.download_laser3(lang) except FileNotFoundError as e: raise pytest.error(str(e)) - + encoder = initialize_encoder(lang, model_dir=CACHE_DIR) tokenizer = initialize_tokenizer(lang, model_dir=CACHE_DIR)