google/fleurs
Viewer • Updated • 768k • 119k • 475
How to use biodatlab/aug-whisper-medium-th-base with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("automatic-speech-recognition", model="biodatlab/aug-whisper-medium-th-base") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
processor = AutoProcessor.from_pretrained("biodatlab/aug-whisper-medium-th-base")
model = AutoModelForSpeechSeq2Seq.from_pretrained("biodatlab/aug-whisper-medium-th-base", device_map="auto")