Unable to run it on my local machine

#2
by syedusama - opened

Hi, I am new and I wanted to run whisper model on my laptop

when I try to import WhisperProcessor, WhisperForConditionalGeneration

It gives me an error can someone place help me.

Thanks in advance

Error:


ImportError Traceback (most recent call last)
/tmp/ipykernel_17/3614451028.py in
----> 1 from transformers import WhisperProcessor, WhisperForConditionalGeneration
2 from datasets import load_dataset
3 import torch
4
5 # load model and processor

ImportError: cannot import name 'WhisperProcessor' from 'transformers' (/opt/conda/lib/python3.7/site-packages/transformers/init.py)

Try install transformers from github repo, not from pip. Because Whisper added only few days ago, and in pypi package i think its not presented yet

Exactly! Should be on transformers soon!

Just in case anyone is facing the same issue. Updating transformer package now and importing WhisperProcessor, WhisperForConditionalGeneration works.

ArthurZ changed discussion status to closed

Sign up or log in to comment