[Whisper] Add model for audio classification (#21754)

* [Whisper] Add model for audio classification

* make fix-copies

* add to docs

* add docstring

* empty returns

* add code example

* switch to fleurs

* stick everything on one line
This commit is contained in:
Sanchit Gandhi
2023-03-07 16:20:21 +01:00
committed by GitHub
parent 9402788b34
commit 7c39318136
9 changed files with 368 additions and 1 deletions

View File

@@ -79,6 +79,11 @@ The original code can be found [here](https://github.com/openai/whisper).
[[autodoc]] WhisperForConditionalGeneration
- forward
## WhisperForAudioClassification
[[autodoc]] WhisperForAudioClassification
- forward
## TFWhisperModel