Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1496,33 +1496,29 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="red", secondary_hue="rose"),
|
|
1496 |
|
1497 |
# Other RVC stuff
|
1498 |
with gr.Row():
|
1499 |
-
|
1500 |
-
|
1501 |
-
|
1502 |
-
|
1503 |
-
|
1504 |
-
|
1505 |
-
|
1506 |
-
|
1507 |
-
|
1508 |
-
|
1509 |
-
|
1510 |
-
|
1511 |
-
|
1512 |
-
|
1513 |
-
|
1514 |
-
|
1515 |
-
|
1516 |
-
|
1517 |
-
|
1518 |
-
|
1519 |
-
|
1520 |
-
|
1521 |
-
|
1522 |
-
outputs=[spk_item],
|
1523 |
-
)
|
1524 |
-
|
1525 |
-
but0 = gr.Button("Convert", variant="primary")
|
1526 |
with gr.Row():
|
1527 |
with gr.Column():
|
1528 |
with gr.Row():
|
|
|
1496 |
|
1497 |
# Other RVC stuff
|
1498 |
with gr.Row():
|
1499 |
+
sid0 = gr.Dropdown(label="1.Choose the model.", choices=[''] + sorted(names), value=check_for_name())
|
1500 |
+
refresh_button = gr.Button("Refresh", variant="primary")
|
1501 |
+
if check_for_name() != '':
|
1502 |
+
get_vc(sorted(names)[0])
|
1503 |
+
vc_transform0 = gr.Number(label="درجة الصوت: 0 من رجل إلى رجل (أو من امرأة إلى امرأة)؛ 12 من رجل الى أمرأة و-12 من أمرأة إلى رجل '\n' Pitch: 0 from man to man (or woman to woman); 12 from man to woman and -12 from woman to man.", value=0)
|
1504 |
+
|
1505 |
+
#clean_button = gr.Button(i18n("卸载音色省显存"), variant="primary")
|
1506 |
+
spk_item = gr.Slider(
|
1507 |
+
minimum=0,
|
1508 |
+
maximum=2333,
|
1509 |
+
step=1,
|
1510 |
+
label=i18n("请选择说话人id"),
|
1511 |
+
value=0,
|
1512 |
+
visible=False,
|
1513 |
+
interactive=True,
|
1514 |
+
)
|
1515 |
+
#clean_button.click(fn=clean, inputs=[], outputs=[sid0])
|
1516 |
+
sid0.change(
|
1517 |
+
fn=get_vc,
|
1518 |
+
inputs=[sid0],
|
1519 |
+
outputs=[spk_item],
|
1520 |
+
)
|
1521 |
+
but0 = gr.Button("Convert", variant="primary")
|
|
|
|
|
|
|
|
|
1522 |
with gr.Row():
|
1523 |
with gr.Column():
|
1524 |
with gr.Row():
|