Update README.md
Browse files
README.md
CHANGED
@@ -46,7 +46,7 @@ from datasets import load_dataset
|
|
46 |
from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
|
47 |
test_dataset = load_dataset("common_voice", "sv-SE", split="test[:2%]").
|
48 |
processor = Wav2Vec2Processor.from_pretrained("KBLab/wav2vec2-large-voxrex-swedish")
|
49 |
-
model = Wav2Vec2ForCTC.from_pretrained("KBLab/wav2vec2-large-
|
50 |
resampler = torchaudio.transforms.Resample(48_000, 16_000)
|
51 |
# Preprocessing the datasets.
|
52 |
# We need to read the aduio files as arrays
|
|
|
46 |
from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
|
47 |
test_dataset = load_dataset("common_voice", "sv-SE", split="test[:2%]").
|
48 |
processor = Wav2Vec2Processor.from_pretrained("KBLab/wav2vec2-large-voxrex-swedish")
|
49 |
+
model = Wav2Vec2ForCTC.from_pretrained("KBLab/wav2vec2-large-voxrex-swedish")
|
50 |
resampler = torchaudio.transforms.Resample(48_000, 16_000)
|
51 |
# Preprocessing the datasets.
|
52 |
# We need to read the aduio files as arrays
|