Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1481,12 +1481,12 @@ 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.Default(primary_hue="
|
| 1485 |
with gr.Tabs():
|
| 1486 |
with gr.TabItem("Inference"):
|
| 1487 |
-
gr.HTML("<h1>
|
| 1488 |
-
gr.HTML("<h10>
|
| 1489 |
-
gr.HTML("<h4>
|
| 1490 |
|
| 1491 |
# Inference Preset Row
|
| 1492 |
# with gr.Row():
|
|
@@ -1498,7 +1498,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="pink", secondary_hue="rose")
|
|
| 1498 |
|
| 1499 |
# Other RVC stuff
|
| 1500 |
with gr.Row():
|
| 1501 |
-
sid0 = gr.Dropdown(label="
|
| 1502 |
refresh_button = gr.Button("Refresh", variant="primary")
|
| 1503 |
if check_for_name() != '':
|
| 1504 |
get_vc(sorted(names)[0])
|
|
@@ -1569,7 +1569,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="pink", secondary_hue="rose")
|
|
| 1569 |
interactive=False,
|
| 1570 |
)
|
| 1571 |
|
| 1572 |
-
with gr.Accordion('
|
| 1573 |
with gr.Column():
|
| 1574 |
ilariaid=gr.Dropdown(label="Voice:", choices=ilariavoices, value="English-Jenny (Female)")
|
| 1575 |
ilariatext = gr.Textbox(label="Input your Text", interactive=True, value="This is a test.")
|
|
@@ -1846,21 +1846,21 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="pink", secondary_hue="rose")
|
|
| 1846 |
[vc_output3],
|
| 1847 |
)
|
| 1848 |
but1.click(fn=lambda: easy_uploader.clear())
|
| 1849 |
-
with gr.TabItem("Download Voice Models"):
|
| 1850 |
-
with gr.Row():
|
| 1851 |
-
url=gr.Textbox(label="Huggingface Link:")
|
| 1852 |
-
with gr.Row():
|
| 1853 |
-
model = gr.Textbox(label="Name of the model (without spaces):")
|
| 1854 |
-
download_button=gr.Button("Download")
|
| 1855 |
-
with gr.Row():
|
| 1856 |
-
status_bar=gr.Textbox(label="Download Status")
|
| 1857 |
-
download_button.click(fn=download_from_url, inputs=[url, model], outputs=[status_bar])
|
| 1858 |
-
with gr.Row():
|
| 1859 |
-
gr.Markdown(
|
| 1860 |
-
"""
|
| 1861 |
-
Made with 💖 by Ilaria | Support her on [Ko-Fi](https://ko-fi.com/ilariaowo)
|
| 1862 |
-
"""
|
| 1863 |
-
|
| 1864 |
|
| 1865 |
def has_two_files_in_pretrained_folder():
|
| 1866 |
pretrained_folder = "./pretrained/"
|
|
|
|
| 1481 |
else:
|
| 1482 |
return f'./weights/{model}.pth', "Could not find Index file."
|
| 1483 |
|
| 1484 |
+
with gr.Blocks(theme=gr.themes.Default(primary_hue="lime", secondary_hue="green"), title="TIMBOVILIO") as app:
|
| 1485 |
with gr.Tabs():
|
| 1486 |
with gr.TabItem("Inference"):
|
| 1487 |
+
gr.HTML("<h1> TIMBOVILIO RVC </h1>")
|
| 1488 |
+
gr.HTML("<h10> RVC but only me </h10>")
|
| 1489 |
+
gr.HTML("<h4> yeah </h4>")
|
| 1490 |
|
| 1491 |
# Inference Preset Row
|
| 1492 |
# with gr.Row():
|
|
|
|
| 1498 |
|
| 1499 |
# Other RVC stuff
|
| 1500 |
with gr.Row():
|
| 1501 |
+
sid0 = gr.Dropdown(label="It's TIMBOVILLin time", choices=sorted(names), value=check_for_name())
|
| 1502 |
refresh_button = gr.Button("Refresh", variant="primary")
|
| 1503 |
if check_for_name() != '':
|
| 1504 |
get_vc(sorted(names)[0])
|
|
|
|
| 1569 |
interactive=False,
|
| 1570 |
)
|
| 1571 |
|
| 1572 |
+
with gr.Accordion('TTS', open=True):
|
| 1573 |
with gr.Column():
|
| 1574 |
ilariaid=gr.Dropdown(label="Voice:", choices=ilariavoices, value="English-Jenny (Female)")
|
| 1575 |
ilariatext = gr.Textbox(label="Input your Text", interactive=True, value="This is a test.")
|
|
|
|
| 1846 |
[vc_output3],
|
| 1847 |
)
|
| 1848 |
but1.click(fn=lambda: easy_uploader.clear())
|
| 1849 |
+
# with gr.TabItem("Download Voice Models"):
|
| 1850 |
+
# with gr.Row():
|
| 1851 |
+
# url=gr.Textbox(label="Huggingface Link:")
|
| 1852 |
+
# with gr.Row():
|
| 1853 |
+
# model = gr.Textbox(label="Name of the model (without spaces):")
|
| 1854 |
+
# download_button=gr.Button("Download")
|
| 1855 |
+
# with gr.Row():
|
| 1856 |
+
# status_bar=gr.Textbox(label="Download Status")
|
| 1857 |
+
# download_button.click(fn=download_from_url, inputs=[url, model], outputs=[status_bar])
|
| 1858 |
+
# with gr.Row():
|
| 1859 |
+
# gr.Markdown(
|
| 1860 |
+
# """
|
| 1861 |
+
# Made with 💖 by Ilaria | Support her on [Ko-Fi](https://ko-fi.com/ilariaowo)
|
| 1862 |
+
# """
|
| 1863 |
+
# )
|
| 1864 |
|
| 1865 |
def has_two_files_in_pretrained_folder():
|
| 1866 |
pretrained_folder = "./pretrained/"
|