format code

This commit is contained in:
2023-04-20 02:00:57 +08:00
parent 49af9564ab
commit 9a646b69e6

View File

@@ -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)