From 2a7e12fd7addf40951ba372811d6db5c724b52b0 Mon Sep 17 00:00:00 2001 From: Purfview <69023953+Purfview@users.noreply.github.com> Date: Thu, 4 Jan 2024 08:15:17 +0000 Subject: [PATCH] Fix if "logprob_threshold=None" --- whisper/transcribe.py | 1 + 1 file changed, 1 insertion(+) diff --git a/whisper/transcribe.py b/whisper/transcribe.py index c228800..911f36c 100644 --- a/whisper/transcribe.py +++ b/whisper/transcribe.py @@ -208,6 +208,7 @@ def transcribe( if ( no_speech_threshold is not None and decode_result.no_speech_prob > no_speech_threshold + and logprob_threshold is not None and decode_result.avg_logprob < logprob_threshold ): needs_fallback = False # silence