Plachta commited on
Commit
d8c03e3
β€’
1 Parent(s): 9f10d8d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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([0])
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")