Spaces:
Runtime error
Runtime error
fix: del modelchange
Browse files- GPT_SoVITS/inference_webui.py +19 -19
GPT_SoVITS/inference_webui.py
CHANGED
@@ -1213,7 +1213,7 @@ with gr.Blocks(title="GPT-SoVITS WebUI", analytics_enabled=False, js=js, css=css
|
|
1213 |
# refresh_button = gr.Button(
|
1214 |
# i18n("刷新模型路径"), variant="primary", scale=14)
|
1215 |
# refresh_button.click(fn=change_choices, inputs=[], outputs=[
|
1216 |
-
|
1217 |
gr.Markdown(html_center(i18n("*请上传并填写参考信息"), "h3"))
|
1218 |
with gr.Row():
|
1219 |
inp_ref = gr.Audio(label=i18n(
|
@@ -1370,24 +1370,24 @@ with gr.Blocks(title="GPT-SoVITS WebUI", analytics_enabled=False, js=js, css=css
|
|
1370 |
],
|
1371 |
[output],
|
1372 |
)
|
1373 |
-
SoVITS_dropdown.change(
|
1374 |
-
|
1375 |
-
|
1376 |
-
|
1377 |
-
|
1378 |
-
|
1379 |
-
|
1380 |
-
|
1381 |
-
|
1382 |
-
|
1383 |
-
|
1384 |
-
|
1385 |
-
|
1386 |
-
|
1387 |
-
|
1388 |
-
|
1389 |
-
)
|
1390 |
-
GPT_dropdown.change(change_gpt_weights, [GPT_dropdown], [])
|
1391 |
|
1392 |
# gr.Markdown(value=i18n("文本切分工具。太长的文本合成出来效果不一定好,所以太长建议先切。合成会根据文本的换行分开合成再拼起来。"))
|
1393 |
# with gr.Row():
|
|
|
1213 |
# refresh_button = gr.Button(
|
1214 |
# i18n("刷新模型路径"), variant="primary", scale=14)
|
1215 |
# refresh_button.click(fn=change_choices, inputs=[], outputs=[
|
1216 |
+
# SoVITS_dropdown, GPT_dropdown])
|
1217 |
gr.Markdown(html_center(i18n("*请上传并填写参考信息"), "h3"))
|
1218 |
with gr.Row():
|
1219 |
inp_ref = gr.Audio(label=i18n(
|
|
|
1370 |
],
|
1371 |
[output],
|
1372 |
)
|
1373 |
+
# SoVITS_dropdown.change(
|
1374 |
+
# change_sovits_weights,
|
1375 |
+
# [SoVITS_dropdown, prompt_language, text_language],
|
1376 |
+
# [
|
1377 |
+
# prompt_language,
|
1378 |
+
# text_language,
|
1379 |
+
# prompt_text,
|
1380 |
+
# prompt_language,
|
1381 |
+
# text,
|
1382 |
+
# text_language,
|
1383 |
+
# sample_steps,
|
1384 |
+
# inp_refs,
|
1385 |
+
# ref_text_free,
|
1386 |
+
# if_sr_Checkbox,
|
1387 |
+
# inference_button,
|
1388 |
+
# ],
|
1389 |
+
# )
|
1390 |
+
# GPT_dropdown.change(change_gpt_weights, [GPT_dropdown], [])
|
1391 |
|
1392 |
# gr.Markdown(value=i18n("文本切分工具。太长的文本合成出来效果不一定好,所以太长建议先切。合成会根据文本的换行分开合成再拼起来。"))
|
1393 |
# with gr.Row():
|