Automatic Speech Recognition
Transformers
PyTorch
speech-encoder-decoder
speech
xls_r
xls_r_translation
Inference Endpoints
patrickvonplaten commited on
Commit
ca00cf7
1 Parent(s): 7c9e794

Update README.md

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