Unverified Commit 3a7e6836 authored by Arthur's avatar Arthur Committed by GitHub
Browse files

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

* add doc warning

* fix build pr
parent 543889f3
...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment