upload flax model cffe86c
Patrick von Platen commited on
How to use PereLluis13/Wav2Vec2-Large-XLSR-53-catalan with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("automatic-speech-recognition", model="PereLluis13/Wav2Vec2-Large-XLSR-53-catalan") # Load model directly
from transformers import AutoProcessor, AutoModelForCTC
processor = AutoProcessor.from_pretrained("PereLluis13/Wav2Vec2-Large-XLSR-53-catalan")
model = AutoModelForCTC.from_pretrained("PereLluis13/Wav2Vec2-Large-XLSR-53-catalan", device_map="auto")