Commit
·
29a5f55
1
Parent(s):
e003600
Update README.md
Browse files
README.md
CHANGED
|
@@ -92,10 +92,10 @@ or step-by-step as follows:
|
|
| 92 |
|
| 93 |
```python
|
| 94 |
import torch
|
| 95 |
-
from transformers import Speech2Text2Processor,
|
| 96 |
from datasets import load_dataset
|
| 97 |
|
| 98 |
-
model =
|
| 99 |
processor = Speech2Text2Processor.from_pretrained("facebook/wav2vec2-xls-r-2b-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-2b-21-to-en")
|
| 99 |
processor = Speech2Text2Processor.from_pretrained("facebook/wav2vec2-xls-r-2b-21-to-en")
|
| 100 |
|
| 101 |
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
|