Bugfix: Illogical "Avoid computing higher temperatures on no_speech" (#652)

This commit is contained in:
Purfview
2024-01-24 10:54:43 +00:00
committed by GitHub
parent ad3c83045b
commit 00efce1696

View File

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