Baseta commited on
Commit
7c80c47
1 Parent(s): a359250

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -27
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
- # Add an empty option as the default
1500
- sid0_choices = [''] + sorted(names)
1501
- sid0 = gr.Dropdown(label="1.Choose the model.", choices=sid0_choices, value=check_for_name())
1502
-
1503
- refresh_button = gr.Button("Refresh", variant="primary")
1504
- if check_for_name() != '':
1505
- get_vc(sorted(names)[0])
1506
-
1507
- 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)
1508
-
1509
- spk_item = gr.Slider(
1510
- minimum=0,
1511
- maximum=2333,
1512
- step=1,
1513
- label=i18n("请选择说话人id"),
1514
- value=0,
1515
- visible=False,
1516
- interactive=True,
1517
- )
1518
-
1519
- sid0.change(
1520
- fn=get_vc,
1521
- inputs=[sid0],
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():