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
44a40c14
Unverified
Commit
44a40c14
authored
Oct 19, 2022
by
Sylvain Gugger
Committed by
GitHub
Oct 19, 2022
Browse files
Fix cache version file creation (#19750)
parent
bed2edb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/transformers/utils/hub.py
src/transformers/utils/hub.py
+1
-0
No files found.
src/transformers/utils/hub.py
View file @
44a40c14
...
...
@@ -1115,6 +1115,7 @@ if cache_version < 1 and cache_is_not_empty:
"message and we will do our best to help."
)
if
cache_version
<
1
:
try
:
os
.
makedirs
(
TRANSFORMERS_CACHE
,
exist_ok
=
True
)
with
open
(
cache_version_file
,
"w"
)
as
f
:
...
...
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