Update import of processor in README.md
#3
by
sanchit-gandhi
HF staff
- opened
README.md
CHANGED
@@ -115,11 +115,11 @@ or step-by-step as follows:
|
|
115 |
|
116 |
```python
|
117 |
import torch
|
118 |
-
from transformers import
|
119 |
from datasets import load_dataset
|
120 |
|
121 |
model = SpeechEncoderDecoderModel.from_pretrained("facebook/wav2vec2-xls-r-300m-21-to-en")
|
122 |
-
processor =
|
123 |
|
124 |
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
|
125 |
|
|
|
115 |
|
116 |
```python
|
117 |
import torch
|
118 |
+
from transformers import Wav2Vec2Processor, SpeechEncoderDecoderModel
|
119 |
from datasets import load_dataset
|
120 |
|
121 |
model = SpeechEncoderDecoderModel.from_pretrained("facebook/wav2vec2-xls-r-300m-21-to-en")
|
122 |
+
processor = Wav2Vec2Processor("facebook/wav2vec2-xls-r-300m-21-to-en")
|
123 |
|
124 |
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
|
125 |
|