From 3a7e68362b2d6e9b229a080f84bcb0ee3e82d8c4 Mon Sep 17 00:00:00 2001 From: Arthur <48595927+ArthurZucker@users.noreply.github.com> Date: Thu, 28 Mar 2024 17:10:26 +0900 Subject: [PATCH] [`pipeline`]. Zero shot add doc warning (#29845) * add doc warning * fix build pr --- .../pipelines/zero_shot_audio_classification.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/transformers/pipelines/zero_shot_audio_classification.py b/src/transformers/pipelines/zero_shot_audio_classification.py index ca9f5e4fcfd4..c3606e3c2b83 100644 --- a/src/transformers/pipelines/zero_shot_audio_classification.py +++ b/src/transformers/pipelines/zero_shot_audio_classification.py @@ -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`. + + + The default `hypothesis_template` is : `"This is a sound of {}."`. Make sure you update it for your usage. + + + Example: ```python >>> from transformers import pipeline