L0SG commited on
Commit
8d1cff2
1 Parent(s): 1de35a2
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -78,7 +78,7 @@ def inference_model(audio_input, model):
78
  y_g_hat = model(spec_gt)
79
 
80
  audio_gen = y_g_hat.squeeze().cpu()
81
- spec_gen = get_mel_spectrogram(audio_gen.unsqueeze(0))
82
  audio_gen = audio_gen.numpy() # [T], float [-1, 1]
83
  audio_gen = (audio_gen * MAX_WAV_VALUE).astype("int16") # [T], int16
84
  spec_gen = spec_gen.squeeze().numpy() # [C, T_frame]
 
78
  y_g_hat = model(spec_gt)
79
 
80
  audio_gen = y_g_hat.squeeze().cpu()
81
+ spec_gen = get_mel_spectrogram(audio_gen.unsqueeze(0), model.h)
82
  audio_gen = audio_gen.numpy() # [T], float [-1, 1]
83
  audio_gen = (audio_gen * MAX_WAV_VALUE).astype("int16") # [T], int16
84
  spec_gen = spec_gen.squeeze().numpy() # [C, T_frame]