Invalidate the cached encoder output when no_speech threshold is met (#376)

This commit is contained in:
Guillaume Klein
2023-07-24 10:57:15 +02:00
committed by GitHub
parent e786e26f75
commit 0f55c436fe

View File

@@ -422,6 +422,7 @@ class WhisperModel:
# fast-forward to the next segment boundary
seek += segment_size
encoder_output = None
continue
tokens = result.sequences_ids[0]