Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -131,7 +131,7 @@ def infer(text_raw, character, language, duration, noise_scale, noise_scale_w, i
|
|
131 |
with torch.no_grad():
|
132 |
x_tst = stn_tst.unsqueeze(0)
|
133 |
x_tst_lengths = torch.LongTensor([stn_tst.size(0)])
|
134 |
-
sid = torch.LongTensor([
|
135 |
audio = net_g.infer(x_tst, x_tst_lengths, sid=sid, noise_scale=noise_scale, noise_scale_w=noise_scale_w, length_scale=duration)[0][0,0].data.float().numpy()
|
136 |
currentDateAndTime = datetime.now()
|
137 |
print(f"Character {character} inference successful: {text}\n")
|
|
|
131 |
with torch.no_grad():
|
132 |
x_tst = stn_tst.unsqueeze(0)
|
133 |
x_tst_lengths = torch.LongTensor([stn_tst.size(0)])
|
134 |
+
sid = torch.LongTensor([char_id])
|
135 |
audio = net_g.infer(x_tst, x_tst_lengths, sid=sid, noise_scale=noise_scale, noise_scale_w=noise_scale_w, length_scale=duration)[0][0,0].data.float().numpy()
|
136 |
currentDateAndTime = datetime.now()
|
137 |
print(f"Character {character} inference successful: {text}\n")
|