Skip to content

Commit

Permalink
decoding.py: Stating when language is not detected out of the audio
Browse files Browse the repository at this point in the history
  • Loading branch information
bphd authored Dec 18, 2024
1 parent 57899a3 commit 66f30a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion whisper/decoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 66f30a3

Please sign in to comment.