Spaces:
Sleeping
Sleeping
fix file reading
Browse files
asr.py
CHANGED
@@ -17,7 +17,7 @@ def load_model():
|
|
17 |
|
18 |
|
19 |
def inference(model, audio_path):
|
20 |
-
arr, rate = read_audio_data(
|
21 |
inputs = processor(arr.squeeze().numpy(), sampling_rate=16_000, return_tensors="pt")
|
22 |
|
23 |
with torch.no_grad():
|
|
|
17 |
|
18 |
|
19 |
def inference(model, audio_path):
|
20 |
+
arr, rate = read_audio_data(audio_path)
|
21 |
inputs = processor(arr.squeeze().numpy(), sampling_rate=16_000, return_tensors="pt")
|
22 |
|
23 |
with torch.no_grad():
|