akhaliq HF Staff commited on
Commit
6ab9450
·
1 Parent(s): c146829

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -40,7 +40,7 @@ def inference(text):
40
  with torch.no_grad():
41
  waveforms = waveglow.infer(spec)
42
 
43
- torchaudio.save("_assets/output_waveglow.wav", waveforms[0:1].cpu(), sample_rate=22050)
44
  return "output_waveglow.wav"
45
 
46
  gr.Interface(inference,"text",gr.outputs.Audio(type="file")).launch(debug=True)
 
40
  with torch.no_grad():
41
  waveforms = waveglow.infer(spec)
42
 
43
+ torchaudio.save("output_waveglow.wav", waveforms[0:1].cpu(), sample_rate=22050)
44
  return "output_waveglow.wav"
45
 
46
  gr.Interface(inference,"text",gr.outputs.Audio(type="file")).launch(debug=True)