Update README.md
Browse files
README.md
CHANGED
@@ -47,12 +47,12 @@ device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
|
47 |
|
48 |
# load model and tokenizer
|
49 |
processor = Wav2Vec2Processor.from_pretrained(
|
50 |
-
"
|
51 |
-
model = Wav2Vec2ForCTC.from_pretrained("
|
52 |
|
53 |
|
54 |
# download the example wav files:
|
55 |
-
os.system("wget https://huggingface.co/
|
56 |
|
57 |
# read the wav file
|
58 |
speech, sample_rate = sf.read("00020570a.flac.wav")
|
|
|
47 |
|
48 |
# load model and tokenizer
|
49 |
processor = Wav2Vec2Processor.from_pretrained(
|
50 |
+
"5roop/wav2vec2-xls-r-parlaspeech-hr-lm")
|
51 |
+
model = Wav2Vec2ForCTC.from_pretrained("5roop/wav2vec2-xls-r-parlaspeech-hr-lm")
|
52 |
|
53 |
|
54 |
# download the example wav files:
|
55 |
+
os.system("wget https://huggingface.co/5roop/wav2vec2-xls-r-parlaspeech-hr-lm/raw/main/00020570a.flac.wav")
|
56 |
|
57 |
# read the wav file
|
58 |
speech, sample_rate = sf.read("00020570a.flac.wav")
|