Invalidate the cached encoder output when no_speech threshold is met (#376)
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user