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
3a7e6836
Unverified
Commit
3a7e6836
authored
Mar 28, 2024
by
Arthur
Committed by
GitHub
Mar 28, 2024
Browse files
[`pipeline`]. Zero shot add doc warning (#29845)
* add doc warning * fix build pr
parent
543889f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/transformers/pipelines/zero_shot_audio_classification.py
src/transformers/pipelines/zero_shot_audio_classification.py
+6
-0
No files found.
src/transformers/pipelines/zero_shot_audio_classification.py
View file @
3a7e6836
...
@@ -35,6 +35,12 @@ class ZeroShotAudioClassificationPipeline(Pipeline):
...
@@ -35,6 +35,12 @@ class ZeroShotAudioClassificationPipeline(Pipeline):
Zero shot audio classification pipeline using `ClapModel`. This pipeline predicts the class of an audio when you
Zero shot audio classification pipeline using `ClapModel`. This pipeline predicts the class of an audio when you
provide an audio and a set of `candidate_labels`.
provide an audio and a set of `candidate_labels`.
<Tip warning={true}>
The default `hypothesis_template` is : `"This is a sound of {}."`. Make sure you update it for your usage.
</Tip>
Example:
Example:
```python
```python
>>> from transformers import pipeline
>>> from transformers import pipeline
...
...
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