Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
arpabet v3 fix test
Browse files
resources/app/arpabet/custom.json
CHANGED
@@ -1,17 +1,13 @@
|
|
1 |
{
|
2 |
"title": "Custom Dictionary",
|
3 |
-
"description": "
|
4 |
"version": "1.0.0",
|
5 |
-
"author": "
|
6 |
"nexusLink": null,
|
7 |
"data": {
|
8 |
-
"
|
9 |
-
"enabled":
|
10 |
-
"arpabet": "
|
11 |
-
},
|
12 |
-
"things": {
|
13 |
-
"enabled": false,
|
14 |
-
"arpabet": "T HH IH N G S"
|
15 |
}
|
16 |
}
|
17 |
}
|
|
|
1 |
{
|
2 |
"title": "Custom Dictionary",
|
3 |
+
"description": "v3 test",
|
4 |
"version": "1.0.0",
|
5 |
+
"author": "Pendrokar",
|
6 |
"nexusLink": null,
|
7 |
"data": {
|
8 |
+
"delzin": {
|
9 |
+
"enabled": true,
|
10 |
+
"arpabet": "D EH0 L F IY1 N"
|
|
|
|
|
|
|
|
|
11 |
}
|
12 |
}
|
13 |
}
|
resources/app/no_server.py
CHANGED
@@ -146,8 +146,11 @@ def loadModel(post_data):
|
|
146 |
models_manager.load_model(modelType, ckpt+".pt", instance_index=instance_index, n_speakers=n_speakers, base_lang=base_lang)
|
147 |
plugin_manager.run_plugins(plist=plugin_manager.plugins["load-model"]["post"], event="post load-model", data=post_data)
|
148 |
|
149 |
-
if
|
150 |
-
|
|
|
|
|
|
|
151 |
|
152 |
return req_response
|
153 |
|
|
|
146 |
models_manager.load_model(modelType, ckpt+".pt", instance_index=instance_index, n_speakers=n_speakers, base_lang=base_lang)
|
147 |
plugin_manager.run_plugins(plist=plugin_manager.plugins["load-model"]["post"], event="post load-model", data=post_data)
|
148 |
|
149 |
+
if (
|
150 |
+
modelType=="fastpitch1_1"
|
151 |
+
or modelType=="xvapitch"
|
152 |
+
):
|
153 |
+
models_manager.models_bank[modelType][instance_index].init_arpabet_dicts()
|
154 |
|
155 |
return req_response
|
156 |
|