EDGAhab commited on
Commit
a0cdcf1
·
1 Parent(s): 3b8996f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -38,8 +38,8 @@ def vc_fn(input):
38
  x_tst = stn_tst.unsqueeze(0)
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 audio
43
 
44
  app = gr.Blocks()
45
  with app:
 
38
  x_tst = stn_tst.unsqueeze(0)
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: