patrickvonplaten
commited on
Commit
•
ca00cf7
1
Parent(s):
7c9e794
Update README.md
Browse files
README.md
CHANGED
@@ -96,10 +96,10 @@ or step-by-step as follows:
|
|
96 |
|
97 |
```python
|
98 |
import torch
|
99 |
-
from transformers import Speech2Text2Processor,
|
100 |
from datasets import load_dataset
|
101 |
|
102 |
-
model =
|
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")
|