google/fleurs
Viewer • Updated • 768k • 61k • 406
How to use fastrolling/whisper-khmer-tiny with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("automatic-speech-recognition", model="fastrolling/whisper-khmer-tiny") # Load model directly
from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
processor = AutoProcessor.from_pretrained("fastrolling/whisper-khmer-tiny")
model = AutoModelForSpeechSeq2Seq.from_pretrained("fastrolling/whisper-khmer-tiny")# Load model directly
from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
processor = AutoProcessor.from_pretrained("fastrolling/whisper-khmer-tiny")
model = AutoModelForSpeechSeq2Seq.from_pretrained("fastrolling/whisper-khmer-tiny")
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="fastrolling/whisper-khmer-tiny")