Fix if "logprob_threshold=None"

This commit is contained in:
Purfview 2024-01-04 08:15:17 +00:00 committed by GitHub
parent e7d46c9ed1
commit 2a7e12fd7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -208,6 +208,7 @@ def transcribe(
if (
no_speech_threshold is not None
and decode_result.no_speech_prob > no_speech_threshold
and logprob_threshold is not None
and decode_result.avg_logprob < logprob_threshold
):
needs_fallback = False # silence