From f8d2fb169fb9848e5dc07fe9e16dcf1c574643f1 Mon Sep 17 00:00:00 2001 From: Jordi Mas Date: Sat, 25 Mar 2023 10:00:59 +0100 Subject: [PATCH] Fix variable name reference (#77) --- faster_whisper/transcribe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/faster_whisper/transcribe.py b/faster_whisper/transcribe.py index 3f8b308..bab6d44 100644 --- a/faster_whisper/transcribe.py +++ b/faster_whisper/transcribe.py @@ -164,13 +164,13 @@ class WhisperModel: length_penalty: Exponential length penalty constant. temperature: Temperature for sampling. It can be a tuple of temperatures, which will be successively used upon failures according to either - `compression_ratio_threshold` or `logprob_threshold`. + `compression_ratio_threshold` or `log_prob_threshold`. compression_ratio_threshold: If the gzip compression ratio is above this value, treat as failed. log_prob_threshold: If the average log probability over sampled tokens is below this value, treat as failed. no_speech_threshold: If the no_speech probability is higher than this value AND - the average log probability over sampled tokens is below `logprob_threshold`, + the average log probability over sampled tokens is below `log_prob_threshold`, consider the segment as silent. condition_on_previous_text: If True, the previous output of the model is provided as a prompt for the next window; disabling may make the text inconsistent across