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
f244a978
Unverified
Commit
f244a978
authored
Nov 28, 2022
by
Yih-Dar
Committed by
GitHub
Nov 28, 2022
Browse files
Fix doctests for audio models (#20468)
Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
df938fc1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/utils/doc.py
src/transformers/utils/doc.py
+1
-1
No files found.
src/transformers/utils/doc.py
View file @
f244a978
...
...
@@ -1087,7 +1087,7 @@ def add_code_sample_docstrings(
expected_loss
=
expected_loss
,
)
if
[
"SequenceClassification"
in
model_class
or
"AudioClassification"
in
model_class
]
and
modality
==
"audio"
:
if
(
"SequenceClassification"
in
model_class
or
"AudioClassification"
in
model_class
)
and
modality
==
"audio"
:
code_sample
=
sample_docstrings
[
"AudioClassification"
]
elif
"SequenceClassification"
in
model_class
:
code_sample
=
sample_docstrings
[
"SequenceClassification"
]
...
...
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