fix duplicate line
This commit is contained in:
parent
8a5e2adb1e
commit
4b738d6f63
1 changed files with 0 additions and 1 deletions
|
|
@ -262,7 +262,6 @@ class PaddedAlignAttWhisper:
|
||||||
self.last_attend_frame -= int(TOKENS_PER_SECOND*removed_len)
|
self.last_attend_frame -= int(TOKENS_PER_SECOND*removed_len)
|
||||||
self.segments = self.segments[1:]
|
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
|
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.context.append_token_ids(self.tokens[1][0,:])
|
||||||
self.tokens = [self.initial_tokens] + self.tokens[2:]
|
self.tokens = [self.initial_tokens] + self.tokens[2:]
|
||||||
return removed_len
|
return removed_len
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue