Update Easy-app.py
Browse files- Easy-app.py +11 -13
Easy-app.py
CHANGED
|
@@ -911,20 +911,18 @@ def change_f0_method(f0method8):
|
|
| 911 |
vc_output1 = gr.Textbox(label=i18n("Console"))
|
| 912 |
vc_output2 = gr.Audio(label=i18n("Audio output"))
|
| 913 |
|
| 914 |
-
with gr.Blocks(title="Ilaria RVC π") as app:
|
| 915 |
-
gr.Markdown("<h1> Ilaria RVC π </h1>")
|
| 916 |
gr.Markdown(value=i18n("Made with π by Ilaria | Support her on [Ko-Fi](https://ko-fi.com/ilariaowo)"))
|
| 917 |
gr.Markdown(i18n("For voice models and support join [AI Hub](https://discord.gg/AIHUB)"))
|
| 918 |
with gr.Tabs():
|
| 919 |
with gr.TabItem(i18n("Inference")):
|
| 920 |
with gr.Row():
|
| 921 |
sid0= gr.Dropdown(label=i18n("Voice"), choices=sorted(names))
|
| 922 |
-
sid1= sid0
|
| 923 |
-
|
| 924 |
-
|
| 925 |
-
|
| 926 |
-
refresh_button = gr.Button(i18n("Refresh"), variant="primary")
|
| 927 |
-
clean_button = gr.Button(i18n("Unload Voice from VRAM"), variant="primary")
|
| 928 |
spk_item = gr.Slider(
|
| 929 |
minimum=0,
|
| 930 |
maximum=2333,
|
|
@@ -942,9 +940,9 @@ with gr.Blocks(title="Ilaria RVC π") as app:
|
|
| 942 |
default=0,
|
| 943 |
step=1,
|
| 944 |
)
|
| 945 |
-
|
| 946 |
-
|
| 947 |
-
|
| 948 |
with gr.TabItem(i18n("Inference")):
|
| 949 |
with gr.Group():
|
| 950 |
with gr.Row():
|
|
@@ -1344,6 +1342,7 @@ with gr.Blocks(title="Ilaria RVC π") as app:
|
|
| 1344 |
trainset_dir4 = gr.Textbox(
|
| 1345 |
label=i18n("Path to Dataset"), value="dataset"
|
| 1346 |
)
|
|
|
|
| 1347 |
with gr.Accordion('Upload Dataset (alternative)', open=False, visible=True):
|
| 1348 |
file_thin = gr.Files(label='Dataset') # transfers files to the dataset dir, lol # much coding -ila
|
| 1349 |
show = gr.Textbox(label='Status')
|
|
@@ -1769,8 +1768,7 @@ with gr.Blocks(title="Ilaria RVC π") as app:
|
|
| 1769 |
|
| 1770 |
- **RVC Project**: Original Developers
|
| 1771 |
- **yumereborn**: Ilaria RVC image
|
| 1772 |
-
|
| 1773 |
-
|
| 1774 |
### **In loving memory of JLabDX** ποΈ
|
| 1775 |
''')
|
| 1776 |
|
|
|
|
| 911 |
vc_output1 = gr.Textbox(label=i18n("Console"))
|
| 912 |
vc_output2 = gr.Audio(label=i18n("Audio output"))
|
| 913 |
|
| 914 |
+
with gr.Blocks(title="Simple Ilaria RVC π") as app:
|
| 915 |
+
gr.Markdown("<h1> Simple Ilaria RVC π </h1>")
|
| 916 |
gr.Markdown(value=i18n("Made with π by Ilaria | Support her on [Ko-Fi](https://ko-fi.com/ilariaowo)"))
|
| 917 |
gr.Markdown(i18n("For voice models and support join [AI Hub](https://discord.gg/AIHUB)"))
|
| 918 |
with gr.Tabs():
|
| 919 |
with gr.TabItem(i18n("Inference")):
|
| 920 |
with gr.Row():
|
| 921 |
sid0= gr.Dropdown(label=i18n("Voice"), choices=sorted(names))
|
| 922 |
+
sid1= sid0
|
| 923 |
+
refresh_button = gr.Button(i18n("Refresh"), variant="primary")
|
| 924 |
+
clean_button = gr.Button(i18n("Unload Voice from VRAM"), variant="primary")
|
| 925 |
+
with gr.Row():
|
|
|
|
|
|
|
| 926 |
spk_item = gr.Slider(
|
| 927 |
minimum=0,
|
| 928 |
maximum=2333,
|
|
|
|
| 940 |
default=0,
|
| 941 |
step=1,
|
| 942 |
)
|
| 943 |
+
clean_button.click(
|
| 944 |
+
fn=clean, inputs=[], outputs=[sid0], api_name="infer_clean"
|
| 945 |
+
)
|
| 946 |
with gr.TabItem(i18n("Inference")):
|
| 947 |
with gr.Group():
|
| 948 |
with gr.Row():
|
|
|
|
| 1342 |
trainset_dir4 = gr.Textbox(
|
| 1343 |
label=i18n("Path to Dataset"), value="dataset"
|
| 1344 |
)
|
| 1345 |
+
with gr.Row():
|
| 1346 |
with gr.Accordion('Upload Dataset (alternative)', open=False, visible=True):
|
| 1347 |
file_thin = gr.Files(label='Dataset') # transfers files to the dataset dir, lol # much coding -ila
|
| 1348 |
show = gr.Textbox(label='Status')
|
|
|
|
| 1768 |
|
| 1769 |
- **RVC Project**: Original Developers
|
| 1770 |
- **yumereborn**: Ilaria RVC image
|
| 1771 |
+
|
|
|
|
| 1772 |
### **In loving memory of JLabDX** ποΈ
|
| 1773 |
''')
|
| 1774 |
|