Spaces:
Runtime error
Runtime error
marigold334
commited on
Commit
β’
2951ed2
1
Parent(s):
5e764fc
Update app.py
Browse files
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 |
-
|
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')
|