Skip to content

Commit a43ef77

Browse files
fix
1 parent 28050c2 commit a43ef77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runner/app/pipelines/audio_to_text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def __call__(self, audio: UploadFile, duration: float, **kwargs) -> List[File]:
125125
# pipeline accepts np.ndarray and does not convert it again. String file path and bytes are converted to np.ndarray in the pipeline.
126126
#https://github.com/huggingface/transformers/blob/47c29ccfaf56947d845971a439cbe75a764b63d7/src/transformers/pipelines/automatic_speech_recognition.py#L353
127127
#https://github.com/huggingface/transformers/blob/47c29ccfaf56947d845971a439cbe75a764b63d7/src/transformers/pipelines/audio_utils.py#L10
128-
audio_array = self._audio_converter.to_ndarray(audioBytes)
128+
audio_array = self._audio_converter.to_ndarray(audioBytes)
129129

130130
# Adjust batch size and chunk length based on timestamps and duration.
131131
# NOTE: Done to prevent CUDA OOM errors for large audio files.

0 commit comments

Comments
 (0)