allow flax 1f30a9d
Patrick von Platen commited on
How to use cahya/wav2vec2-base-artificial with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("automatic-speech-recognition", model="cahya/wav2vec2-base-artificial") # Load model directly
from transformers import AutoProcessor, AutoModelForCTC
processor = AutoProcessor.from_pretrained("cahya/wav2vec2-base-artificial")
model = AutoModelForCTC.from_pretrained("cahya/wav2vec2-base-artificial", device_map="auto")