Skip to content

Commit

Permalink
Arg name correction: auth_token -> token
Browse files Browse the repository at this point in the history
  • Loading branch information
Rene Ravenel authored and Rene Ravenel committed Aug 29, 2024
1 parent 14a07b0 commit 8883ee1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings/python/py_src/tokenizers/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ class Tokenizer:
pass

@staticmethod
def from_pretrained(identifier, revision="main", auth_token=None):
def from_pretrained(identifier, revision="main", token=None):
"""
Instantiate a new :class:`~tokenizers.Tokenizer` from an existing file on the
Hugging Face Hub.
Expand All @@ -982,7 +982,7 @@ class Tokenizer:
a tokenizer.json file
revision (:obj:`str`, defaults to `main`):
A branch or commit id
auth_token (:obj:`str`, `optional`, defaults to `None`):
token (:obj:`str`, `optional`, defaults to `None`):
An optional auth token used to access private repositories on the
Hugging Face Hub
Expand Down

0 comments on commit 8883ee1

Please sign in to comment.