Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ model = Wav2Vec2ForCTC.from_pretrained("adilism/wav2vec2-large-xlsr-kyrgyz")
|
|
11 |
# model.to("cuda")
|
12 |
|
13 |
def transcribe(file_):
|
14 |
-
arr_audio, _ librosa.load(file, rate=16000)
|
15 |
inputs = processor(arr_audio, sampling_rate=16_000, return_tensors="pt", padding=True)
|
16 |
|
17 |
with torch.no_grad():
|
|
|
11 |
# model.to("cuda")
|
12 |
|
13 |
def transcribe(file_):
|
14 |
+
arr_audio, _ = librosa.load(file, rate=16000)
|
15 |
inputs = processor(arr_audio, sampling_rate=16_000, return_tensors="pt", padding=True)
|
16 |
|
17 |
with torch.no_grad():
|