Skip to content

Commit

Permalink
fix: remove model_path=None in JurassicTokenizer.from_file_handle
Browse files Browse the repository at this point in the history
  • Loading branch information
tomeras91 committed Jan 2, 2024
1 parent adee09e commit 5bb5938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ai21_tokenizer/jurassic_tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5bb5938

Please sign in to comment.