Bugfix: Illogical "Avoid computing higher temperatures on no_speech" (#652)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user