marigold334 commited on
Commit
7b55d77
β€’
1 Parent(s): 98032bd
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -48,7 +48,7 @@ class TTS:
48
  x_length = torch.tensor(x.shape[1]).unsqueeze(0).to(device)
49
 
50
  with torch.no_grad():
51
- (y_gen_tst, *_), *_, (attn_gen, *_) = self.flowgenerator(x, x_length, gen = True, noise_scale = noise_scale, length_scale = length_scale) if st.session_state.model_variant != "νƒœμ—°" else self.flowgenerator(x, x_length, inference = True, noise_scale = noise_scale, length_scale = length_scale)
52
  y = self.voicegenerator(y_gen_tst)
53
  audio = y.squeeze() * 32768.0
54
  voice = audio.cpu().numpy().astype('int16')
 
48
  x_length = torch.tensor(x.shape[1]).unsqueeze(0).to(device)
49
 
50
  with torch.no_grad():
51
+ (y_gen_tst, *_), *_, (attn_gen, *_) = self.flowgenerator(x, x_length, gen = True, noise_scale = noise_scale, length_scale = length_scale) if st.session_state.model_variant != "μˆ μ·¨ν•œ νƒœμ—°" else self.flowgenerator(x, x_length, inference = True, noise_scale = noise_scale, length_scale = length_scale)
52
  y = self.voicegenerator(y_gen_tst)
53
  audio = y.squeeze() * 32768.0
54
  voice = audio.cpu().numpy().astype('int16')