Skip to content

Commit

Permalink
Update src/transformers/pipelines/audio_classification.py
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolas Patry <[email protected]>
  • Loading branch information
sanchit-gandhi and Narsil authored Jun 22, 2023
1 parent 8542bb8 commit 4b8c7cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/pipelines/audio_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def preprocess(self, inputs):
# better integration
if not ("sampling_rate" in inputs and ("raw" in inputs or "array" in inputs)):
raise ValueError(
"When passing a dictionary to AutomaticSpeechRecognitionPipeline, the dict needs to contain a "
"When passing a dictionary to AudioClassificationPipeline, the dict needs to contain a "
'"raw" key containing the numpy array representing the audio and a "sampling_rate" key, '
"containing the sampling_rate associated with that array"
)
Expand Down

0 comments on commit 4b8c7cd

Please sign in to comment.