File size: 177 Bytes
a08a4b1
 
 
 
 
 
 
1
2
3
4
5
6
7
8
from transformers import pipeline

whisper_model = pipeline(
    "automatic-speech-recognition",
    model="openai/whisper-small",
    framework="pt"  # Force PyTorch backend
)