[pipeline]. Zero shot add doc warning (#29845)

* add doc warning

* fix build pr
This commit is contained in:
Arthur 2024-03-28 17:10:26 +09:00 committed by GitHub
parent 543889f3f6
commit 3a7e68362b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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