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
7c681264
Commit
7c681264
authored
Dec 21, 2019
by
Aymeric Augustin
Browse files
Restore proper import for HTTPError.
parent
939148b0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
transformers/commands/user.py
transformers/commands/user.py
+3
-1
transformers/tests/hf_api_test.py
transformers/tests/hf_api_test.py
+2
-1
No files found.
transformers/commands/user.py
View file @
7c681264
...
...
@@ -3,8 +3,10 @@ from argparse import ArgumentParser
from
getpass
import
getpass
from
typing
import
List
,
Union
from
requests.exceptions
import
HTTPError
from
transformers.commands
import
BaseTransformersCLICommand
from
transformers.hf_api
import
HfApi
,
HfFolder
,
HTTPError
from
transformers.hf_api
import
HfApi
,
HfFolder
class
UserCommands
(
BaseTransformersCLICommand
):
...
...
transformers/tests/hf_api_test.py
View file @
7c681264
...
...
@@ -20,8 +20,9 @@ import unittest
import
requests
import
six
from
requests.exceptions
import
HTTPError
from
transformers.hf_api
import
HfApi
,
HfFolder
,
HTTPError
,
PresignedUrl
,
S3Obj
from
transformers.hf_api
import
HfApi
,
HfFolder
,
PresignedUrl
,
S3Obj
USER
=
"__DUMMY_TRANSFORMERS_USER__"
...
...
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