Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
a5288852
Unverified
Commit
a5288852
authored
Feb 28, 2024
by
Arthur
Committed by
GitHub
Feb 28, 2024
Browse files
[`require_read_token`] fix typo (#29345)
fix wrapper
parent
e715c78c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/testing_utils.py
src/transformers/testing_utils.py
+1
-1
No files found.
src/transformers/testing_utils.py
View file @
a5288852
...
...
@@ -470,7 +470,7 @@ def require_read_token(fn):
@
wraps
(
fn
)
def
_inner
(
*
args
,
**
kwargs
):
with
patch
(
huggingface_hub
.
utils
.
_headers
,
"get_token"
,
return_value
=
token
):
with
patch
.
object
(
huggingface_hub
.
utils
.
_headers
,
"get_token"
,
return_value
=
token
):
return
fn
(
*
args
,
**
kwargs
)
return
_inner
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment