lfs objects b41f6ce
Karen Hambardzumyan commited on
How to use yerevann/xlsrhy with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("automatic-speech-recognition", model="yerevann/xlsrhy") # Load model directly
from transformers import AutoProcessor, AutoModelForCTC
processor = AutoProcessor.from_pretrained("yerevann/xlsrhy")
model = AutoModelForCTC.from_pretrained("yerevann/xlsrhy", device_map="auto")