From 8542bb8ef84e181e78ca358805f927e32e946cd9 Mon Sep 17 00:00:00 2001 From: sanchit-gandhi Date: Fri, 2 Jun 2023 16:25:04 +0200 Subject: [PATCH] add pip instructions Co-authored-by: Sylvain --- src/transformers/pipelines/audio_classification.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/transformers/pipelines/audio_classification.py b/src/transformers/pipelines/audio_classification.py index c1cb6849259ad2..ac08b243c15f5e 100644 --- a/src/transformers/pipelines/audio_classification.py +++ b/src/transformers/pipelines/audio_classification.py @@ -181,7 +181,8 @@ def preprocess(self, inputs): from torchaudio import functional as F else: raise ImportError( - "torchaudio is required to resample audio samples in AutomaticSpeechRecognitionPipeline." + "torchaudio is required to resample audio samples in AutomaticSpeechRecognitionPipeline. " + "The torchaudio package can be installed through: `pip install torchaudio`." ) inputs = F.resample(