ImportError: cannot import name 'WhisperProcessor' from 'transformers'

I’m trying to run this example:

And gettint error:

ImportError: cannot import name ‘WhisperProcessor’ from ‘transformers’

Environment:

python = 3.8
torch = 1.13.1+cu117
torchaudio = 0.13.1+cu117
transformers = 4.19.2

How can I use hugging face whisper model ?

Hi! Can you try updating your version of Transformers and see if that helps?

1 Like

upgrade to 4.26.1 - solved.
Thanks