Spaces:
Sleeping
Sleeping
Mahiruoshi
commited on
Commit
•
545551c
1
Parent(s):
7714f93
Update app.py
Browse files
app.py
CHANGED
@@ -226,7 +226,7 @@ if __name__ == "__main__":
|
|
226 |
hps = utils.get_hparams_from_file('Data/BangDream/config.json')
|
227 |
version = hps.version if hasattr(hps, "version") else latest_version
|
228 |
net_g = get_net_g(
|
229 |
-
model_path='Data/BangDream/models/
|
230 |
)
|
231 |
speaker_ids = hps.data.spk2id
|
232 |
speakers = list(speaker_ids.keys())
|
@@ -264,7 +264,7 @@ if __name__ == "__main__":
|
|
264 |
length_scale = gr.Slider(
|
265 |
minimum=0.1, maximum=2, value=1, step=0.01, label="语速调节"
|
266 |
)
|
267 |
-
LongSentence = gr.Checkbox(value=
|
268 |
with gr.Accordion(label="切换模型", open=False):
|
269 |
modelstrs = gr.Dropdown(label = "模型", choices = modelPaths, value = modelPaths[0], type = "value")
|
270 |
btnMod = gr.Button("载入模型")
|
|
|
226 |
hps = utils.get_hparams_from_file('Data/BangDream/config.json')
|
227 |
version = hps.version if hasattr(hps, "version") else latest_version
|
228 |
net_g = get_net_g(
|
229 |
+
model_path='Data/BangDream/models/G_33000.pth', version=version, device=device, hps=hps
|
230 |
)
|
231 |
speaker_ids = hps.data.spk2id
|
232 |
speakers = list(speaker_ids.keys())
|
|
|
264 |
length_scale = gr.Slider(
|
265 |
minimum=0.1, maximum=2, value=1, step=0.01, label="语速调节"
|
266 |
)
|
267 |
+
LongSentence = gr.Checkbox(value=False, label="自动拆分句子")
|
268 |
with gr.Accordion(label="切换模型", open=False):
|
269 |
modelstrs = gr.Dropdown(label = "模型", choices = modelPaths, value = modelPaths[0], type = "value")
|
270 |
btnMod = gr.Button("载入模型")
|