marigold334 commited on
Commit
2951ed2
β€’
1 Parent(s): 5e764fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ class TTS:
49
  x_length = torch.tensor(x.shape[1]).unsqueeze(0).to(device)
50
 
51
  with torch.no_grad():
52
- (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)
53
  y = self.voicegenerator(y_gen_tst)
54
  audio = y.squeeze() * 32768.0
55
  voice = audio.cpu().numpy().astype('int16')
 
49
  x_length = torch.tensor(x.shape[1]).unsqueeze(0).to(device)
50
 
51
  with torch.no_grad():
52
+ (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)
53
  y = self.voicegenerator(y_gen_tst)
54
  audio = y.squeeze() * 32768.0
55
  voice = audio.cpu().numpy().astype('int16')