Vladimir Alabov commited on
Commit
dce0849
1 Parent(s): d48e266

Fix audio load #8

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -86,7 +86,8 @@ def run_inference(input_audio, speaker):
86
  stderr=subprocess.STDOUT,
87
  text=True
88
  )
89
- out_audio, sr = torchaudio.load('out.wav')
 
90
  print(out_audio)
91
  return "Success", (sr, out_audio)
92
 
 
86
  stderr=subprocess.STDOUT,
87
  text=True
88
  )
89
+ audio, sr = torchaudio.load('out.wav')
90
+ out_audio = audio.cpu().numpy()[0]
91
  print(out_audio)
92
  return "Success", (sr, out_audio)
93