Skip to content

Commit

Permalink
tokenizer.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 90db0de commit 57899a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion whisper/tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def get_tokenizer(

if multilingual:
encoding_name = "multilingual"
language = language or "en"
language = language or "default"
task = task or "transcribe"
else:
encoding_name = "gpt2"
Expand Down

0 comments on commit 57899a3

Please sign in to comment.