kbthebest181
commited on
Commit
·
09c2dc3
1
Parent(s):
9910649
Update README.md
Browse files
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"])
|