Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
38a67459
"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "9c5bcab5b0c8a59e81a421dd6fbcd6a093ddcf31"
Commit
38a67459
authored
Aug 09, 2022
by
Sylvain Gugger
Browse files
Clean up comment
parent
5e2f3737
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
src/transformers/utils/hub.py
src/transformers/utils/hub.py
+0
-1
No files found.
src/transformers/utils/hub.py
View file @
38a67459
...
@@ -952,7 +952,6 @@ def move_to_new_cache(file, repo, filename, revision, etag, commit_hash):
...
@@ -952,7 +952,6 @@ def move_to_new_cache(file, repo, filename, revision, etag, commit_hash):
# blobs
# blobs
os
.
makedirs
(
os
.
path
.
join
(
repo
,
"blobs"
),
exist_ok
=
True
)
os
.
makedirs
(
os
.
path
.
join
(
repo
,
"blobs"
),
exist_ok
=
True
)
# TODO: replace copy by move when all works well.
blob_path
=
os
.
path
.
join
(
repo
,
"blobs"
,
etag
)
blob_path
=
os
.
path
.
join
(
repo
,
"blobs"
,
etag
)
shutil
.
move
(
file
,
blob_path
)
shutil
.
move
(
file
,
blob_path
)
...
...
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