Update app.py
Browse files
app.py
CHANGED
@@ -58,7 +58,6 @@ def inference(re_im, session, onnx_model, input_names, output_names):
|
|
58 |
output_audio = torch.tensor(np.concatenate(output_audio, 0))
|
59 |
output_audio = output_audio.permute(1, 0, 2).contiguous()
|
60 |
output_audio = torch.view_as_complex(output_audio)
|
61 |
-
output_audio = output_audio.to(torch.float32)
|
62 |
output_audio = torch.istft(output_audio, window, stride, window=hann)
|
63 |
return output_audio.numpy()
|
64 |
|
|
|
58 |
output_audio = torch.tensor(np.concatenate(output_audio, 0))
|
59 |
output_audio = output_audio.permute(1, 0, 2).contiguous()
|
60 |
output_audio = torch.view_as_complex(output_audio)
|
|
|
61 |
output_audio = torch.istft(output_audio, window, stride, window=hann)
|
62 |
return output_audio.numpy()
|
63 |
|