google/fleurs
Viewer • Updated • 768k • 79.2k • 425
How to use shaeel12/whisper-tiny-urdu with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("automatic-speech-recognition", model="shaeel12/whisper-tiny-urdu", device_map="auto") # Load model directly
from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
processor = AutoProcessor.from_pretrained("shaeel12/whisper-tiny-urdu")
model = AutoModelForSpeechSeq2Seq.from_pretrained("shaeel12/whisper-tiny-urdu", device_map="auto")# Load model directly
from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
processor = AutoProcessor.from_pretrained("shaeel12/whisper-tiny-urdu")
model = AutoModelForSpeechSeq2Seq.from_pretrained("shaeel12/whisper-tiny-urdu", device_map="auto")This model was fine-tuned on a combination of the following speech corpuses:
Base model
openai/whisper-tiny
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="shaeel12/whisper-tiny-urdu", device_map="auto")