fix duplicate line

This commit is contained in:
Quentin Fuxa
2025-07-31 16:29:35 +02:00
parent 8a5e2adb1e
commit 4b738d6f63

View File

@@ -262,7 +262,6 @@ class PaddedAlignAttWhisper:
self.last_attend_frame -= int(TOKENS_PER_SECOND*removed_len)
self.segments = self.segments[1:]
if len(self.tokens) > 1: # When warming up, we can have a too long segments_len while not having any tokens yet
self.context.append_token_ids(self.tokens[1][0,:])
self.context.append_token_ids(self.tokens[1][0,:])
self.tokens = [self.initial_tokens] + self.tokens[2:]
return removed_len