Skip to content

Commit

Permalink
[pipeline]. Zero shot add doc warning (#29845)
Browse files Browse the repository at this point in the history
* add doc warning

* fix build pr
  • Loading branch information
ArthurZucker authored and Ita Zaporozhets committed May 14, 2024
1 parent 92b6d47 commit 4612d83
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/transformers/pipelines/zero_shot_audio_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ class ZeroShotAudioClassificationPipeline(Pipeline):
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`.
<Tip warning={true}>
The default `hypothesis_template` is : `"This is a sound of {}."`. Make sure you update it for your usage.
</Tip>
Example:
```python
>>> from transformers import pipeline
Expand Down

0 comments on commit 4612d83

Please sign in to comment.