Pass prefix only to the first window
This commit is contained in:
@@ -290,7 +290,7 @@ class WhisperModel:
|
|||||||
tokenizer,
|
tokenizer,
|
||||||
previous_tokens,
|
previous_tokens,
|
||||||
without_timestamps=options.without_timestamps,
|
without_timestamps=options.without_timestamps,
|
||||||
prefix=options.prefix,
|
prefix=options.prefix if seek == 0 else None,
|
||||||
)
|
)
|
||||||
|
|
||||||
if encoder_output is None:
|
if encoder_output is None:
|
||||||
|
|||||||
Reference in New Issue
Block a user