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
2390b2cf
Unverified
Commit
2390b2cf
authored
Jan 24, 2022
by
Sylvain Gugger
Committed by
GitHub
Jan 24, 2022
Browse files
Fix a typo in tag addition (#15286)
* Fix a typo in tag addition * Put it back again
parent
c972433a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/modelcard.py
src/transformers/modelcard.py
+1
-1
No files found.
src/transformers/modelcard.py
View file @
2390b2cf
...
@@ -672,7 +672,7 @@ class TrainingSummary:
...
@@ -672,7 +672,7 @@ class TrainingSummary:
tags
=
[
"generated_from_keras_callback"
]
tags
=
[
"generated_from_keras_callback"
]
elif
isinstance
(
tags
,
str
)
and
tags
!=
"generated_from_keras_callback"
:
elif
isinstance
(
tags
,
str
)
and
tags
!=
"generated_from_keras_callback"
:
tags
=
[
tags
,
"generated_from_keras_callback"
]
tags
=
[
tags
,
"generated_from_keras_callback"
]
elif
"generated_from_
trainer
"
not
in
tags
:
elif
"generated_from_
keras_callback
"
not
in
tags
:
tags
.
append
(
"generated_from_keras_callback"
)
tags
.
append
(
"generated_from_keras_callback"
)
if
keras_history
is
not
None
:
if
keras_history
is
not
None
:
...
...
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