Whisper fix (#711)

* Remove unnecessary file.

* Whisper fix.
This commit is contained in:
Laurent Mazare
2023-09-01 21:04:07 +02:00
committed by GitHub
parent 731e3ffb03
commit 19042962d5
2 changed files with 3 additions and 9 deletions

View File

@ -146,11 +146,8 @@ impl Decoder {
tokens.push(language_token);
}
match self.task {
Some(Task::Transcribe) => tokens.push(self.transcribe_token),
None | Some(Task::Transcribe) => tokens.push(self.transcribe_token),
Some(Task::Translate) => tokens.push(self.translate_token),
None => {
// Nothing in this case, same as the Python implementation.
}
}
if !self.timestamps {
tokens.push(self.no_timestamps_token);