Update URLs
Browse files
README.md
CHANGED
@@ -8,11 +8,11 @@ tags:
|
|
8 |
- parlaspeech
|
9 |
widget:
|
10 |
- example_title: example 1
|
11 |
-
src: https://huggingface.co/
|
12 |
- example_title: example 2
|
13 |
-
src: https://huggingface.co/
|
14 |
- example_title: example 3
|
15 |
-
src: https://huggingface.co/
|
16 |
---
|
17 |
|
18 |
# wav2vec2-xls-r-parlaspeech-hr-lm
|
@@ -46,8 +46,8 @@ import os
|
|
46 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
47 |
# load model and tokenizer
|
48 |
processor = Wav2Vec2ProcessorWithLM.from_pretrained(
|
49 |
-
"
|
50 |
-
model = Wav2Vec2ForCTC.from_pretrained("
|
51 |
# download the example wav files:
|
52 |
os.system("wget https://huggingface.co/classla/wav2vec2-large-slavic-parlaspeech-hr/raw/main/00020570a.flac.wav")
|
53 |
# read the wav file
|
|
|
8 |
- parlaspeech
|
9 |
widget:
|
10 |
- example_title: example 1
|
11 |
+
src: https://huggingface.co/classla/wav2vec2-xls-r-parlaspeech-hr-lm/raw/main/1800.m4a
|
12 |
- example_title: example 2
|
13 |
+
src: https://huggingface.co/classla/wav2vec2-xls-r-parlaspeech-hr-lm/raw/main/00020578b.flac.wav
|
14 |
- example_title: example 3
|
15 |
+
src: https://huggingface.co/classla/wav2vec2-xls-r-parlaspeech-hr-lm/raw/main/00020570a.flac.wav
|
16 |
---
|
17 |
|
18 |
# wav2vec2-xls-r-parlaspeech-hr-lm
|
|
|
46 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
47 |
# load model and tokenizer
|
48 |
processor = Wav2Vec2ProcessorWithLM.from_pretrained(
|
49 |
+
"classla/wav2vec2-xls-r-parlaspeech-hr-lm")
|
50 |
+
model = Wav2Vec2ForCTC.from_pretrained("classla/wav2vec2-xls-r-parlaspeech-hr-lm")
|
51 |
# download the example wav files:
|
52 |
os.system("wget https://huggingface.co/classla/wav2vec2-large-slavic-parlaspeech-hr/raw/main/00020570a.flac.wav")
|
53 |
# read the wav file
|