update model card README.md c6d6ae4
Derek Thomas commited on
How to use derek-thomas/whisper-tiny-polyai-english with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("automatic-speech-recognition", model="derek-thomas/whisper-tiny-polyai-english") # Load model directly
from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
processor = AutoProcessor.from_pretrained("derek-thomas/whisper-tiny-polyai-english")
model = AutoModelForSpeechSeq2Seq.from_pretrained("derek-thomas/whisper-tiny-polyai-english", device_map="auto")