Update app.py
Browse files
app.py
CHANGED
@@ -1219,7 +1219,7 @@ with gr.Blocks(title="🔊",theme=gr.themes.Base(primary_hue="rose",neutral_hue=
|
|
1219 |
choices=["40k", "32k"],
|
1220 |
value="40k",
|
1221 |
interactive=True,
|
1222 |
-
visible=
|
1223 |
)
|
1224 |
if_f0_3 = gr.Radio(
|
1225 |
label=i18n("模型是否带音高指导(唱歌一定要, 语音可以不要)"),
|
@@ -1367,7 +1367,7 @@ with gr.Blocks(title="🔊",theme=gr.themes.Base(primary_hue="rose",neutral_hue=
|
|
1367 |
pretrained_G14 = gr.Dropdown(
|
1368 |
label=i18n("加载预训练底模G路径"),
|
1369 |
value="assets/pretrained_v2/f0G40k.pth",
|
1370 |
-
choices=get_pretrains('
|
1371 |
interactive=True,
|
1372 |
visible=False
|
1373 |
)
|
@@ -1375,7 +1375,7 @@ with gr.Blocks(title="🔊",theme=gr.themes.Base(primary_hue="rose",neutral_hue=
|
|
1375 |
label=i18n("加载预训练底模D路径"),
|
1376 |
value="assets/pretrained_v2/f0D40k.pth",
|
1377 |
interactive=True,
|
1378 |
-
choices=get_pretrains('
|
1379 |
visible=False
|
1380 |
)
|
1381 |
display_advanced_settings.change(fn=update_visibility,inputs=[display_advanced_settings],outputs=[pretrained_G14,pretrained_D15])
|
|
|
1219 |
choices=["40k", "32k"],
|
1220 |
value="40k",
|
1221 |
interactive=True,
|
1222 |
+
visible=True
|
1223 |
)
|
1224 |
if_f0_3 = gr.Radio(
|
1225 |
label=i18n("模型是否带音高指导(唱歌一定要, 语音可以不要)"),
|
|
|
1367 |
pretrained_G14 = gr.Dropdown(
|
1368 |
label=i18n("加载预训练底模G路径"),
|
1369 |
value="assets/pretrained_v2/f0G40k.pth",
|
1370 |
+
choices=get_pretrains('G'),
|
1371 |
interactive=True,
|
1372 |
visible=False
|
1373 |
)
|
|
|
1375 |
label=i18n("加载预训练底模D路径"),
|
1376 |
value="assets/pretrained_v2/f0D40k.pth",
|
1377 |
interactive=True,
|
1378 |
+
choices=get_pretrains('D'),
|
1379 |
visible=False
|
1380 |
)
|
1381 |
display_advanced_settings.change(fn=update_visibility,inputs=[display_advanced_settings],outputs=[pretrained_G14,pretrained_D15])
|