initial commit 9b0002b
Diego Magdaleno commited on
How to use dmmagdal/whisper-tiny-onnx with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("automatic-speech-recognition", model="dmmagdal/whisper-tiny-onnx") # Load model directly
from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
processor = AutoProcessor.from_pretrained("dmmagdal/whisper-tiny-onnx")
model = AutoModelForSpeechSeq2Seq.from_pretrained("dmmagdal/whisper-tiny-onnx", device_map="auto")