mutemoon/audio-about-food-2k
Viewer • Updated • 3.42k • 8
How to use mutemoon/whisper-tiny-zh-food with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("automatic-speech-recognition", model="mutemoon/whisper-tiny-zh-food") # Load model directly
from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
processor = AutoProcessor.from_pretrained("mutemoon/whisper-tiny-zh-food")
model = AutoModelForSpeechSeq2Seq.from_pretrained("mutemoon/whisper-tiny-zh-food", device_map="auto")