mirror of
https://github.com/shirayu/whispering.git
synced 2024-11-25 10:21:00 +00:00
Fix condition
This commit is contained in:
parent
7bbf5b3eb7
commit
0471f26a33
1 changed files with 1 additions and 1 deletions
|
@ -290,7 +290,7 @@ class WhisperStreamingTranscriber:
|
|||
seek += last_timestamp_position * self.input_stride
|
||||
logger.debug(f"new seek={seek}, mel.shape: {mel.shape}")
|
||||
|
||||
if mel.shape[-1] < N_FRAMES:
|
||||
if mel.shape[-1] - seek < N_FRAMES:
|
||||
break
|
||||
|
||||
if mel.shape[-1] - seek <= 0:
|
||||
|
|
Loading…
Reference in a new issue