Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ def inference(text):
|
|
40 |
with torch.no_grad():
|
41 |
waveforms = waveglow.infer(spec)
|
42 |
|
43 |
-
torchaudio.save("
|
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)
|