From 5ed89d0ca24e99e93376da4626690354c1f1c6e7 Mon Sep 17 00:00:00 2001 From: jax Date: Fri, 8 Mar 2024 12:07:59 +0800 Subject: [PATCH] remove log --- whisper/decoding.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/whisper/decoding.py b/whisper/decoding.py index 994cc04..56bede8 100644 --- a/whisper/decoding.py +++ b/whisper/decoding.py @@ -606,13 +606,11 @@ class DecodingTask: else prompt ) if (hotwords := self.options.hotwords) and not self.options.prefix: - print(f"hotwords: {hotwords}") hotwords_tokens = self.tokenizer.encode(" " + hotwords.strip()) if len(hotwords_tokens) >= self.n_ctx // 2: hotwords_tokens = hotwords_tokens[: self.n_ctx // 2 - 1] tokens = ( [self.tokenizer.sot_prev] - + prompt_tokens[-(self.n_ctx // 2 - 1) :] + (hotwords_tokens if self.options.hotwords is not None else []) + (prompt_tokens[-(self.n_ctx // 2 - 1) :] if self.options.prompt is not None else []) + tokens