From 5bb5938c850c55d04e8100581334fe2f082e0701 Mon Sep 17 00:00:00 2001 From: Tomer Asida Date: Tue, 2 Jan 2024 14:55:48 +0200 Subject: [PATCH] fix: remove model_path=None in JurassicTokenizer.from_file_handle --- ai21_tokenizer/jurassic_tokenizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ai21_tokenizer/jurassic_tokenizer.py b/ai21_tokenizer/jurassic_tokenizer.py index 8249dfd..0b7ac5d 100644 --- a/ai21_tokenizer/jurassic_tokenizer.py +++ b/ai21_tokenizer/jurassic_tokenizer.py @@ -61,7 +61,7 @@ def __init__( def from_file_handle( cls, model_file_handle: BinaryIO, config: Optional[Dict[str, Any]] = None ) -> JurassicTokenizer: - return cls(model_path=None, model_file_handle=model_file_handle, config=config) + return cls(model_file_handle=model_file_handle, config=config) @classmethod def from_file_path(cls, model_path: PathLike, config: Optional[Dict[str, Any]] = None) -> JurassicTokenizer: