initial commit e4c6b7b verified
Jssug drygege commited on
How to use gitmbio/whis-small-bn with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("automatic-speech-recognition", model="gitmbio/whis-small-bn") # Load model directly
from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
processor = AutoProcessor.from_pretrained("gitmbio/whis-small-bn")
model = AutoModelForSpeechSeq2Seq.from_pretrained("gitmbio/whis-small-bn", device_map="auto")