akhaliq HF staff commited on
Commit
fe513e5
1 Parent(s): 78e4d84

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -41,7 +41,7 @@ def inference(text):
41
  waveforms = waveglow.infer(spec)
42
 
43
  torchaudio.save("output_waveglow.wav", waveforms[0:1].cpu(), sample_rate=22050)
44
- return "output_waveglow.wav",spec[0].cpu().detach().numpu()
45
 
46
  title="TACOTRON 2"
47
  description="Gradio demo for TACOTRON 2: The Tacotron 2 model for generating mel spectrograms from text. To use it, simply add you text or click on one of the examples to load them. Read more at the links below."
 
41
  waveforms = waveglow.infer(spec)
42
 
43
  torchaudio.save("output_waveglow.wav", waveforms[0:1].cpu(), sample_rate=22050)
44
+ return "output_waveglow.wav",spec[0].cpu().detach().numpy()
45
 
46
  title="TACOTRON 2"
47
  description="Gradio demo for TACOTRON 2: The Tacotron 2 model for generating mel spectrograms from text. To use it, simply add you text or click on one of the examples to load them. Read more at the links below."