sayashi commited on
Commit
4fd2adc
β€’
1 Parent(s): cf01dd3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -40,7 +40,7 @@ def vits(text, language, speaker_id, noise_scale, noise_scale_w, length_scale):
40
  x_tst_lengths = LongTensor([stn_tst.size(0)]).to(device)
41
  speaker_id = LongTensor([speaker_id]).to(device)
42
  audio = net_g_ms.infer(x_tst, x_tst_lengths, sid=speaker_id, noise_scale=noise_scale, noise_scale_w=noise_scale_w,
43
- length_scale=length_scale)[0][0, 0].data.float().numpy()
44
 
45
  return "η”ŸζˆζˆεŠŸ!", (22050, audio), f"η”Ÿζˆθ€—ζ—Ά {round(time.perf_counter()-start, 2)} s"
46
 
 
40
  x_tst_lengths = LongTensor([stn_tst.size(0)]).to(device)
41
  speaker_id = LongTensor([speaker_id]).to(device)
42
  audio = net_g_ms.infer(x_tst, x_tst_lengths, sid=speaker_id, noise_scale=noise_scale, noise_scale_w=noise_scale_w,
43
+ length_scale=length_scale)[0][0, 0].data.cpu().float().numpy()
44
 
45
  return "η”ŸζˆζˆεŠŸ!", (22050, audio), f"η”Ÿζˆθ€—ζ—Ά {round(time.perf_counter()-start, 2)} s"
46