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
7fe294bf
"docs/vscode:/vscode.git/clone" did not exist on "6d38ab1cc35eb8ae943370ef24493ae4df51a208"
Commit
7fe294bf
authored
Jan 30, 2020
by
Julien Chaumond
Browse files
Hotfix: same handling of non-existent files as for config
parent
b85c59f9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/transformers/modelcard.py
src/transformers/modelcard.py
+2
-0
No files found.
src/transformers/modelcard.py
View file @
7fe294bf
...
...
@@ -152,6 +152,8 @@ class ModelCard(object):
resolved_model_card_file
=
cached_path
(
model_card_file
,
cache_dir
=
cache_dir
,
force_download
=
True
,
proxies
=
proxies
,
resume_download
=
False
)
if
resolved_model_card_file
is
None
:
raise
EnvironmentError
if
resolved_model_card_file
==
model_card_file
:
logger
.
info
(
"loading model card file {}"
.
format
(
model_card_file
))
else
:
...
...
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