From 66f30a3d3c41a0ffe9f84554b415c22a45b807a7 Mon Sep 17 00:00:00 2001 From: xqyz <10251866+bphd@users.noreply.github.com> Date: Wed, 18 Dec 2024 09:37:09 +0000 Subject: [PATCH] decoding.py: Stating when language is not detected out of the audio --- whisper/decoding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whisper/decoding.py b/whisper/decoding.py index 49485d009..5aa7f9df2 100644 --- a/whisper/decoding.py +++ b/whisper/decoding.py @@ -514,7 +514,7 @@ class DecodingTask: def __init__(self, model: "Whisper", options: DecodingOptions): self.model = model - language = options.language or "en" + language = options.language or "default" tokenizer = get_tokenizer( model.is_multilingual, num_languages=model.num_languages,