Runtime error

#3
by XtewaldX - opened

Runtime error
ne 673, in wrapper
response = f(*args, **kwargs)
File "/home/user/app/app.py", line 34, in youtube_url_to_text
transcript = output(audio_path=video_path, language=language_choice)
File "/home/user/.pyenv/versions/3.10.14/lib/python3.10/site-packages/whisperplus/pipelines/whisper.py", line 76, in call
result = pipe(audio_path)
File "/home/user/.pyenv/versions/3.10.14/lib/python3.10/site-packages/transformers/pipelines/automatic_speech_recognition.py", line 285, in call
return super().call(inputs, **kwargs)
File "/home/user/.pyenv/versions/3.10.14/lib/python3.10/site-packages/transformers/pipelines/base.py", line 1234, in call
return next(
File "/home/user/.pyenv/versions/3.10.14/lib/python3.10/site-packages/transformers/pipelines/pt_utils.py", line 124, in next
item = next(self.iterator)
File "/home/user/.pyenv/versions/3.10.14/lib/python3.10/site-packages/transformers/pipelines/pt_utils.py", line 269, in next
processed = self.infer(next(self.iterator), **self.params)
File "/home/user/.pyenv/versions/3.10.14/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 631, in next
data = self._next_data()
File "/home/user/.pyenv/versions/3.10.14/lib/python3.10/site-packages/torch/utils/data/dataloader.py", line 675, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "/home/user/.pyenv/versions/3.10.14/lib/python3.10/site-packages/torch/utils/data/_utils/fetch.py", line 32, in fetch
data.append(next(self.dataset_iter))
File "/home/user/.pyenv/versions/3.10.14/lib/python3.10/site-packages/transformers/pipelines/pt_utils.py", line 186, in next
processed = next(self.subiterator)
File "/home/user/.pyenv/versions/3.10.14/lib/python3.10/site-packages/transformers/pipelines/automatic_speech_recognition.py", line 410, in preprocess
raise ValueError(f"We expect a numpy ndarray as input, got {type(inputs)}")
ValueError: We expect a numpy ndarray as input, got <class 'NoneType'>
Container logs:

===== Application Startup at 2024-05-04 15:16:57 =====

/home/user/.pyenv/versions/3.10.14/lib/python3.10/site-packages/pyannote/audio/core/io.py:43: UserWarning: torchaudio._backend.set_audio_backend has been deprecated. With dispatcher enabled, this function is no-op. You can remove the function call.
torchaudio.set_audio_backend("soundfile")
Collecting flash-attn
Downloading flash_attn-2.5.8.tar.gz (2.5 MB)
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” 2.5/2.5 MB 39.2 MB/s eta 0:00:00

Sign up or log in to comment