patrickvonplaten commited on
Commit
a4e821b
1 Parent(s): e44e571

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -132,10 +132,10 @@ or step-by-step as follows:
132
 
133
  ```python
134
  import torch
135
- from transformers import Speech2Text2Processor, SpeechEncoderDecoder
136
  from datasets import load_dataset
137
 
138
- model = SpeechEncoderDecoder.from_pretrained("facebook/wav2vec2-xls-r-2b-22-to-16")
139
  processor = Speech2Text2Processor.from_pretrained("facebook/wav2vec2-xls-r-2b-22-to-16")
140
 
141
  ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
 
132
 
133
  ```python
134
  import torch
135
+ from transformers import Speech2Text2Processor, SpeechEncoderDecoderModel
136
  from datasets import load_dataset
137
 
138
+ model = SpeechEncoderDecoderModel.from_pretrained("facebook/wav2vec2-xls-r-2b-22-to-16")
139
  processor = Speech2Text2Processor.from_pretrained("facebook/wav2vec2-xls-r-2b-22-to-16")
140
 
141
  ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")