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
afc24ea5
"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "69ff59604531a744a07c163953f61c19521a74f4"
Commit
afc24ea5
authored
Jan 13, 2020
by
Julien Chaumond
Browse files
In a parallel setup this could fail
parent
894812c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
src/transformers/file_utils.py
src/transformers/file_utils.py
+1
-2
No files found.
src/transformers/file_utils.py
View file @
afc24ea5
...
@@ -316,8 +316,7 @@ def get_from_cache(
...
@@ -316,8 +316,7 @@ def get_from_cache(
if
isinstance
(
cache_dir
,
Path
):
if
isinstance
(
cache_dir
,
Path
):
cache_dir
=
str
(
cache_dir
)
cache_dir
=
str
(
cache_dir
)
if
not
os
.
path
.
exists
(
cache_dir
):
os
.
makedirs
(
cache_dir
,
exist_ok
=
True
)
os
.
makedirs
(
cache_dir
)
# Get eTag to add to filename, if it exists.
# Get eTag to add to filename, if it exists.
if
url
.
startswith
(
"s3://"
):
if
url
.
startswith
(
"s3://"
):
...
...
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