google/fleurs
Viewer • Updated • 768k • 95.7k • 441
How to use Sanyam0605/whisper-large-v2-hi with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("automatic-speech-recognition", model="Sanyam0605/whisper-large-v2-hi") # Load model directly
from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
processor = AutoProcessor.from_pretrained("Sanyam0605/whisper-large-v2-hi")
model = AutoModelForSpeechSeq2Seq.from_pretrained("Sanyam0605/whisper-large-v2-hi", device_map="auto")# Load model directly
from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
processor = AutoProcessor.from_pretrained("Sanyam0605/whisper-large-v2-hi")
model = AutoModelForSpeechSeq2Seq.from_pretrained("Sanyam0605/whisper-large-v2-hi", device_map="auto")
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="Sanyam0605/whisper-large-v2-hi")