5roop commited on
Commit
9597662
1 Parent(s): e049326

Update URLs

Browse files
Files changed (1) hide show
  1. README.md +5 -5
README.md CHANGED
@@ -8,11 +8,11 @@ tags:
8
  - parlaspeech
9
  widget:
10
  - example_title: example 1
11
- src: https://huggingface.co/5roop/wav2vec2-xls-r-parlaspeech-hr-lm/raw/main/1800.m4a
12
  - example_title: example 2
13
- src: https://huggingface.co/5roop/wav2vec2-xls-r-parlaspeech-hr-lm/raw/main/00020578b.flac.wav
14
  - example_title: example 3
15
- src: https://huggingface.co/5roop/wav2vec2-xls-r-parlaspeech-hr-lm/raw/main/00020570a.flac.wav
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
- "5roop/wav2vec2-xls-r-parlaspeech-hr-lm")
50
- model = Wav2Vec2ForCTC.from_pretrained("5roop/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
 
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