Bugfix: Illogical "Avoid computing higher temperatures on no_speech" (#652)
This commit is contained in:
@@ -744,6 +744,8 @@ class WhisperModel:
|
|||||||
if (
|
if (
|
||||||
options.no_speech_threshold is not None
|
options.no_speech_threshold is not None
|
||||||
and result.no_speech_prob > options.no_speech_threshold
|
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
|
needs_fallback = False # silence
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user