first model 05b6e1e
Cheng Jed commited on
How to use jed351/whisper_medium_cantonese_cm_voice with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("automatic-speech-recognition", model="jed351/whisper_medium_cantonese_cm_voice") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
processor = AutoProcessor.from_pretrained("jed351/whisper_medium_cantonese_cm_voice")
model = AutoModelForSpeechSeq2Seq.from_pretrained("jed351/whisper_medium_cantonese_cm_voice", device_map="auto")