Automatic Speech Recognition
Transformers
PyTorch
speech-encoder-decoder
speech
xls_r
xls_r_translation
Inference Endpoints
patrickvonplaten commited on
Commit
133cd34
1 Parent(s): c4006fc

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -92,10 +92,10 @@ or step-by-step as follows:
92
 
93
  ```python
94
  import torch
95
- from transformers import Speech2Text2Processor, SpeechEncoderDecoder
96
  from datasets import load_dataset
97
 
98
- model = SpeechEncoderDecoder.from_pretrained("facebook/wav2vec2-xls-r-1b-21-to-en")
99
  processor = Speech2Text2Processor.from_pretrained("facebook/wav2vec2-xls-r-1b-21-to-en")
100
 
101
  ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
 
92
 
93
  ```python
94
  import torch
95
+ from transformers import Speech2Text2Processor, SpeechEncoderDecoderModel
96
  from datasets import load_dataset
97
 
98
+ model = SpeechEncoderDecoderModel.from_pretrained("facebook/wav2vec2-xls-r-1b-21-to-en")
99
  processor = Speech2Text2Processor.from_pretrained("facebook/wav2vec2-xls-r-1b-21-to-en")
100
 
101
  ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")