mirror of
https://github.com/openai/whisper.git
synced 2025-11-28 16:14:00 +00:00
Update decoding.py
This commit is contained in:
parent
eb8f285b39
commit
5b16d67519
@ -586,7 +586,7 @@ class DecodingTask:
|
||||
if self.sample_len is not None:
|
||||
max_prefix_len = self.n_ctx // 2 - self.sample_len
|
||||
prefix_tokens = prefix_tokens[-max_prefix_len:]
|
||||
if not self.without_timestamps:
|
||||
if not self.options.without_timestamps:
|
||||
tokens = tokens + [self.tokenizer.timestamp_begin]
|
||||
tokens = tokens + prefix_tokens
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user