kingabzpro commited on
Commit
f123239
1 Parent(s): 23a7aa2

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -59,7 +59,7 @@ from datasets import load_dataset
59
  from transformers import AutoModelForCTC, AutoProcessor
60
  import torchaudio.functional as F
61
  model_id = "kingabzpro/wav2vec2-large-xlsr-300-arabic"
62
- sample_iter = iter(load_dataset("mozilla-foundation/common_voice_8_0", "ur", split="test", streaming=True, use_auth_token=True))
63
  sample = next(sample_iter)
64
  resampled_audio = F.resample(torch.tensor(sample["audio"]["array"]), 48_000, 16_000).numpy()
65
  model = AutoModelForCTC.from_pretrained(model_id)
 
59
  from transformers import AutoModelForCTC, AutoProcessor
60
  import torchaudio.functional as F
61
  model_id = "kingabzpro/wav2vec2-large-xlsr-300-arabic"
62
+ sample_iter = iter(load_dataset("mozilla-foundation/common_voice_8_0", "ar", split="test", streaming=True, use_auth_token=True))
63
  sample = next(sample_iter)
64
  resampled_audio = F.resample(torch.tensor(sample["audio"]["array"]), 48_000, 16_000).numpy()
65
  model = AutoModelForCTC.from_pretrained(model_id)