Skip to content

Commit

Permalink
fix guessing is_multilingual for large-v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Berkes committed Nov 7, 2023
1 parent 3836555 commit bd3e7df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/whisper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ namespace ctranslate2 {
_no_speech_id = vocabulary.to_id("<|nospeech|>");
if (_no_speech_id == vocabulary.unk_id())
_no_speech_id = vocabulary.to_id("<|nocaptions|>");
_is_multilingual = vocabulary.size() == 51865;
_is_multilingual = vocabulary.size() >= 51865;
_n_mels = _encoder->input_size();
}

Expand Down

0 comments on commit bd3e7df

Please sign in to comment.