sadrasabouri
commited on
Commit
•
f932e73
1
Parent(s):
b466f87
Update README.md
Browse files
README.md
CHANGED
@@ -47,6 +47,11 @@ import torchaudio
|
|
47 |
import torch
|
48 |
import numpy as np
|
49 |
|
|
|
|
|
|
|
|
|
|
|
50 |
speech_array, sampling_rate = torchaudio.load("wav2vec2-test.wav")
|
51 |
speech_array = speech_array.squeeze().numpy()
|
52 |
|
|
|
47 |
import torch
|
48 |
import numpy as np
|
49 |
|
50 |
+
from transformers import AutoProcessor, AutoModelForCTC
|
51 |
+
|
52 |
+
processor = AutoProcessor.from_pretrained("SLPL/Sharif-wav2vec2")
|
53 |
+
model = AutoModelForCTC.from_pretrained("SLPL/Sharif-wav2vec2")
|
54 |
+
|
55 |
speech_array, sampling_rate = torchaudio.load("wav2vec2-test.wav")
|
56 |
speech_array = speech_array.squeeze().numpy()
|
57 |
|