From 9a646b69e69a9ea1668861ead8eccb6e9eb73f39 Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Thu, 20 Apr 2023 02:00:57 +0800 Subject: [PATCH] format code --- faster_whisper/transcribe.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/faster_whisper/transcribe.py b/faster_whisper/transcribe.py index 5222374..c5c5525 100644 --- a/faster_whisper/transcribe.py +++ b/faster_whisper/transcribe.py @@ -503,7 +503,12 @@ class WhisperModel: continue check_prompt_num = 1 - if all([text.strip() != i.strip() for i in all_prompt_text[-check_prompt_num:]]): + if all( + [ + text.strip() != i.strip() + for i in all_prompt_text[-check_prompt_num:] + ] + ): all_tokens.extend(tokens) all_prompt_text.append(text)