Merge pull request #6 from openai/main

Bugfix: Illogical "Avoid computing higher temperatures on no_speech" …
This commit is contained in:
BraveHeart-David 2024-12-03 21:17:19 +08:00 committed by GitHub
commit 458b0538b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -214,6 +214,8 @@ def transcribe(
if ( if (
no_speech_threshold is not None no_speech_threshold is not None
and decode_result.no_speech_prob > no_speech_threshold 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 needs_fallback = False # silence
if not needs_fallback: if not needs_fallback: