Spaces:
Runtime error
Runtime error
Update inference.py
Browse files- inference.py +2 -2
inference.py
CHANGED
@@ -27,12 +27,12 @@ def load_model():
|
|
27 |
with open(config_path, "r", encoding="utf-8") as f:
|
28 |
hps = json.load(f)
|
29 |
|
30 |
-
|
31 |
|
32 |
n_speakers = hps["data"].get("n_speakers", 0)
|
33 |
|
34 |
model = SynthesizerTrn(
|
35 |
-
|
36 |
hps["model"]["inter_channels"],
|
37 |
hps["model"]["hidden_channels"],
|
38 |
hps["model"]["filter_channels"],
|
|
|
27 |
with open(config_path, "r", encoding="utf-8") as f:
|
28 |
hps = json.load(f)
|
29 |
|
30 |
+
n_vocab = 77
|
31 |
|
32 |
n_speakers = hps["data"].get("n_speakers", 0)
|
33 |
|
34 |
model = SynthesizerTrn(
|
35 |
+
n_vocab,
|
36 |
hps["model"]["inter_channels"],
|
37 |
hps["model"]["hidden_channels"],
|
38 |
hps["model"]["filter_channels"],
|