From 1a968a432389ec14aa9c25d10aa31bb50ec880a5 Mon Sep 17 00:00:00 2001 From: Guillaume Klein Date: Sat, 1 Apr 2023 09:26:42 +0200 Subject: [PATCH] Pass prefix only to the first window --- faster_whisper/transcribe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faster_whisper/transcribe.py b/faster_whisper/transcribe.py index fb54f85..813b4b8 100644 --- a/faster_whisper/transcribe.py +++ b/faster_whisper/transcribe.py @@ -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: