5roop commited on
Commit
550c088
1 Parent(s): f75eb47

Correct URLs

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -45,10 +45,10 @@ import os
45
  device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
46
  # load model and tokenizer
47
  processor = Wav2Vec2ProcessorWithLM.from_pretrained(
48
- "5roop/wav2vec2-large-slavic-parlaspeech-hr-lm")
49
- model = Wav2Vec2ForCTC.from_pretrained("5roop/wav2vec2-large-slavic-parlaspeech-hr-lm")
50
  # download the example wav files:
51
- os.system("wget https://huggingface.co/classla/wav2vec2-large-slavic-parlaspeech-hr/raw/main/00020570a.flac.wav")
52
  # read the wav file
53
  speech, sample_rate = sf.read("00020570a.flac.wav")
54
  input_values = processor(speech, sampling_rate=sample_rate, return_tensors="pt").input_values.cuda()
 
45
  device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
46
  # load model and tokenizer
47
  processor = Wav2Vec2ProcessorWithLM.from_pretrained(
48
+ "classla/wav2vec2-large-slavic-parlaspeech-hr-lm")
49
+ model = Wav2Vec2ForCTC.from_pretrained("classla/wav2vec2-large-slavic-parlaspeech-hr-lm")
50
  # download the example wav files:
51
+ os.system("wget https://huggingface.co/classla/wav2vec2-large-slavic-parlaspeech-hr-lm/raw/main/00020570a.flac.wav")
52
  # read the wav file
53
  speech, sample_rate = sf.read("00020570a.flac.wav")
54
  input_values = processor(speech, sampling_rate=sample_rate, return_tensors="pt").input_values.cuda()