Bugfix: code breaks if audio is empty (#768)

* Bugfix: code breaks if audio is empty

Regression since https://github.com/SYSTRAN/faster-whisper/pull/732 PR
This commit is contained in:
Purfview
2024-04-02 17:18:12 +01:00
committed by GitHub
parent e0c3a9ed34
commit 8ae82c8372

View File

@@ -356,7 +356,7 @@ class WhisperModel:
features.shape[-1] - self.feature_extractor.nb_max_frames
)
while (
seek < content_frames
seek <= content_frames
and seek
< self.feature_extractor.nb_max_frames * language_detection_segments
):