rakesh-ai/Medical_Transcription
Viewer • Updated • 6.66k • 12 • 1
How to use Harshit655/whisper-small-en with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("automatic-speech-recognition", model="Harshit655/whisper-small-en") # Load model directly
from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
processor = AutoProcessor.from_pretrained("Harshit655/whisper-small-en")
model = AutoModelForSpeechSeq2Seq.from_pretrained("Harshit655/whisper-small-en", device_map="auto")