talipturkmen
commited on
replace AutoProcesser with AutoFeatureExtractor
Browse files
README.md
CHANGED
@@ -125,7 +125,7 @@ dataset = load_dataset("hf-internal-testing/librispeech_asr_demo", "clean", spli
|
|
125 |
dataset = dataset.sort("id")
|
126 |
sampling_rate = dataset.features["audio"].sampling_rate
|
127 |
|
128 |
-
processor =
|
129 |
model = Wav2Vec2BertModel.from_pretrained("facebook/w2v-bert-2.0")
|
130 |
|
131 |
# audio file is decoded on the fly
|
|
|
125 |
dataset = dataset.sort("id")
|
126 |
sampling_rate = dataset.features["audio"].sampling_rate
|
127 |
|
128 |
+
processor = AutoFeatureExtractor.from_pretrained("facebook/w2v-bert-2.0")
|
129 |
model = Wav2Vec2BertModel.from_pretrained("facebook/w2v-bert-2.0")
|
130 |
|
131 |
# audio file is decoded on the fly
|