From 00efce1696c21310bbdfd58433adfc8d44c2edbc Mon Sep 17 00:00:00 2001 From: Purfview <69023953+Purfview@users.noreply.github.com> Date: Wed, 24 Jan 2024 10:54:43 +0000 Subject: [PATCH] Bugfix: Illogical "Avoid computing higher temperatures on no_speech" (#652) --- faster_whisper/transcribe.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/faster_whisper/transcribe.py b/faster_whisper/transcribe.py index f87acfe..83bbf5c 100644 --- a/faster_whisper/transcribe.py +++ b/faster_whisper/transcribe.py @@ -744,6 +744,8 @@ class WhisperModel: if ( options.no_speech_threshold is not None and result.no_speech_prob > options.no_speech_threshold + and options.log_prob_threshold is not None + and avg_logprob < options.log_prob_threshold ): needs_fallback = False # silence