Skip to content

Commit

Permalink
add pip instructions
Browse files Browse the repository at this point in the history
Co-authored-by: Sylvain <[email protected]>
  • Loading branch information
sanchit-gandhi and sgugger committed Jun 2, 2023
1 parent 06751d4 commit 8542bb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/transformers/pipelines/audio_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8542bb8

Please sign in to comment.