Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -228,7 +228,7 @@ def tse(test_wav, enroll_wav):
|
|
228 |
sample = sample.squeeze()
|
229 |
x_hat = geco_model.to_audio(sample.squeeze(), min_leng)
|
230 |
x_hat = x_hat * norm_factor / x_hat.abs().max()
|
231 |
-
x_hat = x_hat.detach().cpu()
|
232 |
|
233 |
end_time = time.time()
|
234 |
audio_len = x_hat.shape[-1] / 16000
|
|
|
228 |
sample = sample.squeeze()
|
229 |
x_hat = geco_model.to_audio(sample.squeeze(), min_leng)
|
230 |
x_hat = x_hat * norm_factor / x_hat.abs().max()
|
231 |
+
x_hat = x_hat.detach().cpu().squeeze().numpy()
|
232 |
|
233 |
end_time = time.time()
|
234 |
audio_len = x_hat.shape[-1] / 16000
|