Spaces:
Runtime error
Runtime error
fixed inference fn
Browse files
app.py
CHANGED
@@ -79,7 +79,7 @@ _ = hifigan.eval()
|
|
79 |
hifigan.remove_weight_norm()
|
80 |
|
81 |
|
82 |
-
def inference(text,
|
83 |
text = " ".join(word_tokenize(text))
|
84 |
x = torch.LongTensor(
|
85 |
intersperse(text_to_sequence(text, dictionary=cmu), len(symbols))
|
|
|
79 |
hifigan.remove_weight_norm()
|
80 |
|
81 |
|
82 |
+
def inference(text, n_timesteps):
|
83 |
text = " ".join(word_tokenize(text))
|
84 |
x = torch.LongTensor(
|
85 |
intersperse(text_to_sequence(text, dictionary=cmu), len(symbols))
|