Update app.py
Browse files
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 |
|