mirror of
https://github.com/SYSTRAN/faster-whisper.git
synced 2026-01-10 22:18:07 -05:00
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