Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1481,7 +1481,7 @@ def zip_downloader(model):
|
|
1481 |
else:
|
1482 |
return f'./weights/{model}.pth', "Could not find Index file."
|
1483 |
|
1484 |
-
with gr.Blocks(theme=gr.themes.
|
1485 |
with gr.Tabs():
|
1486 |
with gr.TabItem("Inference"):
|
1487 |
gr.HTML("<h1> TIMBOVILIO RVC </h1>")
|
@@ -1528,7 +1528,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="lime", secondary_hue="green"
|
|
1528 |
record_button=gr.Audio(source="microphone", label="Or you can use your microphone!", type="filepath")
|
1529 |
with gr.Row():
|
1530 |
input_audio0 = gr.Dropdown(
|
1531 |
-
label="2.Choose the audio file.",
|
1532 |
value="./audios/Test_Audio.mp3",
|
1533 |
choices=audio_files
|
1534 |
)
|
@@ -1580,21 +1580,21 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="lime", secondary_hue="green"
|
|
1580 |
with gr.Accordion("Index Settings", open=False):
|
1581 |
#with gr.Row():
|
1582 |
|
1583 |
-
|
1584 |
label="3. Choose the index file (in case it wasn't automatically found.)",
|
1585 |
choices=get_indexes(),
|
1586 |
-
|
1587 |
interactive=True,
|
1588 |
)
|
1589 |
sid0.change(fn=match_index, inputs=[sid0],outputs=[file_index1])
|
1590 |
refresh_button.click(
|
1591 |
fn=change_choices, inputs=[], outputs=[sid0, file_index1]
|
1592 |
)
|
1593 |
-
|
1594 |
-
|
1595 |
-
|
1596 |
-
|
1597 |
-
|
1598 |
index_rate1 = gr.Slider(
|
1599 |
minimum=0,
|
1600 |
maximum=1,
|
|
|
1481 |
else:
|
1482 |
return f'./weights/{model}.pth', "Could not find Index file."
|
1483 |
|
1484 |
+
with gr.Blocks(theme=gr.themes.Glass(primary_hue="lime", secondary_hue="lime"), title="TIMBOVILIO") as app:
|
1485 |
with gr.Tabs():
|
1486 |
with gr.TabItem("Inference"):
|
1487 |
gr.HTML("<h1> TIMBOVILIO RVC </h1>")
|
|
|
1528 |
record_button=gr.Audio(source="microphone", label="Or you can use your microphone!", type="filepath")
|
1529 |
with gr.Row():
|
1530 |
input_audio0 = gr.Dropdown(
|
1531 |
+
label="2. Choose the audio file.",
|
1532 |
value="./audios/Test_Audio.mp3",
|
1533 |
choices=audio_files
|
1534 |
)
|
|
|
1580 |
with gr.Accordion("Index Settings", open=False):
|
1581 |
#with gr.Row():
|
1582 |
|
1583 |
+
file_index1 = gr.Dropdown(
|
1584 |
label="3. Choose the index file (in case it wasn't automatically found.)",
|
1585 |
choices=get_indexes(),
|
1586 |
+
value=get_index(),
|
1587 |
interactive=True,
|
1588 |
)
|
1589 |
sid0.change(fn=match_index, inputs=[sid0],outputs=[file_index1])
|
1590 |
refresh_button.click(
|
1591 |
fn=change_choices, inputs=[], outputs=[sid0, file_index1]
|
1592 |
)
|
1593 |
+
# file_big_npy1 = gr.Textbox(
|
1594 |
+
# label=i18n("特征文件路径"),
|
1595 |
+
# value="E:\\codes\py39\\vits_vc_gpu_train\\logs\\mi-test-1key\\total_fea.npy",
|
1596 |
+
# interactive=True,
|
1597 |
+
# )
|
1598 |
index_rate1 = gr.Slider(
|
1599 |
minimum=0,
|
1600 |
maximum=1,
|