Pass prefix only to the first window

This commit is contained in:
Guillaume Klein
2023-04-01 09:26:42 +02:00
parent def70d8496
commit 1a968a4323

View File

@@ -290,7 +290,7 @@ class WhisperModel:
tokenizer,
previous_tokens,
without_timestamps=options.without_timestamps,
prefix=options.prefix,
prefix=options.prefix if seek == 0 else None,
)
if encoder_output is None: