voidful/NMSQA_audio
Viewer • Updated • 98.3k • 69 • 1
How to use Oscarshih/Whisper-small-NMSQA with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("automatic-speech-recognition", model="Oscarshih/Whisper-small-NMSQA") # Load model directly
from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
processor = AutoProcessor.from_pretrained("Oscarshih/Whisper-small-NMSQA")
model = AutoModelForSpeechSeq2Seq.from_pretrained("Oscarshih/Whisper-small-NMSQA")