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
9384e5f6
Unverified
Commit
9384e5f6
authored
Apr 09, 2020
by
calpt
Committed by
GitHub
Apr 09, 2020
Browse files
Fix force_download of files on Windows (#3697)
parent
bc65afc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/file_utils.py
src/transformers/file_utils.py
+1
-1
No files found.
src/transformers/file_utils.py
View file @
9384e5f6
...
...
@@ -487,7 +487,7 @@ def get_from_cache(
http_get
(
url
,
temp_file
,
proxies
=
proxies
,
resume_size
=
resume_size
,
user_agent
=
user_agent
)
logger
.
info
(
"storing %s in cache at %s"
,
url
,
cache_path
)
os
.
re
nam
e
(
temp_file
.
name
,
cache_path
)
os
.
re
plac
e
(
temp_file
.
name
,
cache_path
)
logger
.
info
(
"creating metadata file for %s"
,
cache_path
)
meta
=
{
"url"
:
url
,
"etag"
:
etag
}
...
...
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