Spaces:
Sleeping
Sleeping
Vladimir Alabov
commited on
Commit
•
dce0849
1
Parent(s):
d48e266
Fix audio load #8
Browse files
app.py
CHANGED
@@ -86,7 +86,8 @@ def run_inference(input_audio, speaker):
|
|
86 |
stderr=subprocess.STDOUT,
|
87 |
text=True
|
88 |
)
|
89 |
-
|
|
|
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 |
|