Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ def vc_fn(input):
|
|
39 |
x_tst_lengths = torch.LongTensor([stn_tst.size(0)])
|
40 |
audio = net_g.infer(x_tst, x_tst_lengths, noise_scale=.667, noise_scale_w=0.8, length_scale=1)[0][0,0].data.cpu().float().numpy()
|
41 |
sampling_rate = 22050
|
42 |
-
return (sampling_rate
|
43 |
|
44 |
app = gr.Blocks()
|
45 |
with app:
|
|
|
39 |
x_tst_lengths = torch.LongTensor([stn_tst.size(0)])
|
40 |
audio = net_g.infer(x_tst, x_tst_lengths, noise_scale=.667, noise_scale_w=0.8, length_scale=1)[0][0,0].data.cpu().float().numpy()
|
41 |
sampling_rate = 22050
|
42 |
+
return (sampling_rate, audio)
|
43 |
|
44 |
app = gr.Blocks()
|
45 |
with app:
|