TIMBOVILL commited on
Commit
a305f76
·
verified ·
1 Parent(s): a6a9265

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +73 -19
app.py CHANGED
@@ -1481,12 +1481,66 @@ 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="pink", secondary_hue="rose"), title="Ilaria RVC 💖") as app:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1485
  with gr.Tabs():
1486
  with gr.TabItem("Inference"):
1487
- gr.HTML("<h1> Ilaria RVC 💖 </h1>")
1488
- gr.HTML("<h10> You can find voice models on AI Hub: https://discord.gg/aihub </h10>")
1489
- gr.HTML("<h4> Huggingface port by Ilaria of the Rejekt Easy GUI </h4>")
1490
 
1491
  # Inference Preset Row
1492
  # with gr.Row():
@@ -1846,21 +1900,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
+ import gradio as gr
1485
+
1486
+ theme = gr.themes.Soft(
1487
+ primary_hue="orange",
1488
+ secondary_hue="orange",
1489
+ font=[gr.themes.GoogleFont('Comic Neue'), 'ui-sans-serif', 'system-ui', 'sans-serif'],
1490
+ ).set(
1491
+ body_text_color_dark='*neutral_800',
1492
+ body_text_color_subdued='white',
1493
+ body_text_color_subdued_dark='white',
1494
+ background_fill_primary='*secondary_950',
1495
+ background_fill_primary_dark='*secondary_950',
1496
+ background_fill_secondary_dark='*neutral_50',
1497
+ border_color_accent_dark='*neutral_300',
1498
+ border_color_primary_dark='*neutral_200',
1499
+ color_accent_soft_dark='*primary_50',
1500
+ prose_header_text_weight='100',
1501
+ code_background_fill_dark='*neutral_100',
1502
+ block_background_fill='*primary_50',
1503
+ block_background_fill_dark='*primary_50',
1504
+ block_info_text_color='*secondary_950',
1505
+ block_info_text_color_dark='*secondary_950',
1506
+ block_label_background_fill='*primary_600',
1507
+ block_label_text_color='white',
1508
+ block_title_text_color='*primary_50',
1509
+ block_title_text_color_dark='*primary_50',
1510
+ panel_border_color='*primary_950',
1511
+ panel_border_color_dark='*primary_950',
1512
+ checkbox_background_color_dark='*background_fill_primary',
1513
+ checkbox_background_color_selected_dark='*primary_600',
1514
+ checkbox_border_color_dark='*neutral_100',
1515
+ checkbox_border_color_focus_dark='*primary_500',
1516
+ checkbox_border_color_hover_dark='*neutral_300',
1517
+ checkbox_border_color_selected_dark='*primary_600',
1518
+ checkbox_label_background_fill_selected_dark='*primary_500',
1519
+ input_background_fill_dark='white',
1520
+ input_background_fill_focus_dark='*secondary_500',
1521
+ input_border_color_dark='*neutral_50',
1522
+ input_border_color_focus_dark='*secondary_300',
1523
+ slider_color_dark='*primary_500',
1524
+ stat_background_fill_dark='*primary_300',
1525
+ table_border_color_dark='*neutral_300',
1526
+ table_even_background_fill_dark='white',
1527
+ table_odd_background_fill_dark='*neutral_50',
1528
+ button_primary_background_fill='*primary_800',
1529
+ button_primary_background_fill_dark='*primary_800',
1530
+ button_primary_background_fill_hover_dark='*primary_400',
1531
+ button_primary_border_color_dark='*primary_200',
1532
+ button_secondary_background_fill_dark='white',
1533
+ button_secondary_background_fill_hover_dark='*neutral_100',
1534
+ button_secondary_border_color_dark='*neutral_200',
1535
+ button_secondary_text_color_dark='*neutral_800'
1536
+ )
1537
+
1538
+ with gr.Blocks(theme=theme) as app:
1539
  with gr.Tabs():
1540
  with gr.TabItem("Inference"):
1541
+ gr.HTML("<h1> RVC-Pooio-Fork </h1>")
1542
+ gr.HTML("<h10> The RVC fork of all time </h10>")
1543
+ gr.HTML("<h4> haha poop </h4>")
1544
 
1545
  # Inference Preset Row
1546
  # with gr.Row():
 
1900
  [vc_output3],
1901
  )
1902
  but1.click(fn=lambda: easy_uploader.clear())
1903
+ # with gr.TabItem("Download Voice Models"):
1904
+ # with gr.Row():
1905
+ # url=gr.Textbox(label="Huggingface Link:")
1906
+ # with gr.Row():
1907
+ # model = gr.Textbox(label="Name of the model (without spaces):")
1908
+ # download_button=gr.Button("Download")
1909
+ # with gr.Row():
1910
+ # status_bar=gr.Textbox(label="Download Status")
1911
+ # download_button.click(fn=download_from_url, inputs=[url, model], outputs=[status_bar])
1912
+ # with gr.Row():
1913
+ # gr.Markdown(
1914
+ # """
1915
+ # Made with 💖 by Ilaria | Support her on [Ko-Fi](https://ko-fi.com/ilariaowo)
1916
+ # """
1917
+ # )
1918
 
1919
  def has_two_files_in_pretrained_folder():
1920
  pretrained_folder = "./pretrained/"