OpenSound commited on
Commit
addc7ac
·
verified ·
1 Parent(s): 070f348

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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