Update README.md
#2
by
kbthebest181
- opened
README.md
CHANGED
|
@@ -53,7 +53,7 @@ from datasets import load_dataset
|
|
| 53 |
import soundfile as sf
|
| 54 |
|
| 55 |
model = Speech2TextForConditionalGeneration.from_pretrained("facebook/s2t-medium-librispeech-asr")
|
| 56 |
-
processor =
|
| 57 |
|
| 58 |
def map_to_array(batch):
|
| 59 |
speech, _ = sf.read(batch["file"])
|
|
|
|
| 53 |
import soundfile as sf
|
| 54 |
|
| 55 |
model = Speech2TextForConditionalGeneration.from_pretrained("facebook/s2t-medium-librispeech-asr")
|
| 56 |
+
processor = Speech2TextProcessor.from_pretrained("facebook/s2t-medium-librispeech-asr")
|
| 57 |
|
| 58 |
def map_to_array(batch):
|
| 59 |
speech, _ = sf.read(batch["file"])
|