mrfakename commited on
Commit
ca0edb1
1 Parent(s): ce6781a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -153,7 +153,7 @@ def infer(ref_audio_orig, ref_text, gen_text, exp_name, remove_silence, progress
153
  )
154
 
155
  generated = generated[:, ref_audio_len:, :]
156
- generated_mel_specs.append(rearrange(generated, '1 n d -> 1 d n'))
157
  gr.Info("Running vocoder")
158
  vocos = Vocos.from_pretrained("charactr/vocos-mel-24khz")
159
  generated_wave = vocos.decode(generated_mel_spec.cpu())
 
153
  )
154
 
155
  generated = generated[:, ref_audio_len:, :]
156
+ generated_mel_spec = rearrange(generated, '1 n d -> 1 d n')
157
  gr.Info("Running vocoder")
158
  vocos = Vocos.from_pretrained("charactr/vocos-mel-24khz")
159
  generated_wave = vocos.decode(generated_mel_spec.cpu())