Lguyogiro commited on
Commit
6b2f3c6
·
1 Parent(s): 267c239

fix file reading

Browse files
Files changed (1) hide show
  1. asr.py +1 -1
asr.py CHANGED
@@ -17,7 +17,7 @@ def load_model():
17
 
18
 
19
  def inference(model, audio_path):
20
- arr, rate = read_audio_data(fp)
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():