TIMBOVILL commited on
Commit
22648c6
·
verified ·
1 Parent(s): 2df4882

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +26 -19
app.py CHANGED
@@ -1481,30 +1481,37 @@ def zip_downloader(model):
1481
  else:
1482
  return f'./weights/{model}.pth', "Could not find Index file."
1483
 
1484
- fakeapplio = gr.themes.Base(
1485
- primary_hue="violet",
1486
- secondary_hue="violet",
1487
- font=[gr.themes.GoogleFont('sans-serif'), 'ui-sans-serif', 'system-ui', 'sans-serif'],
 
 
1488
  ).set(
1489
- border_color_accent_dark='*primary_600',
1490
- border_color_primary_dark='*neutral_900',
1491
- color_accent_soft_dark='*neutral_950',
1492
- block_background_fill_dark='*neutral_950',
1493
- block_border_color_dark='*neutral_950',
1494
- checkbox_background_color_dark='*neutral_950',
1495
- checkbox_border_color_dark='*primary_950',
1496
- checkbox_label_background_fill_dark='*button_primary_background_fill',
1497
- checkbox_label_background_fill_selected_dark='*button_primary_background_fill',
1498
- input_background_fill='*neutral_200',
1499
- input_background_fill_dark='*neutral_900',
1500
- slider_color_dark='*button_primary_background_fill'
 
 
 
 
 
1501
  )
1502
 
1503
- with gr.Blocks(theme=fakeapplio) as app:
1504
  with gr.Tabs():
1505
  with gr.TabItem("Inference"):
1506
- gr.HTML("<h1> Applio-RVC-Fork V3 </h1>")
1507
- gr.HTML("<h10> This product is in early stages of development and is subject to significant changes. Your feedback is appreciated as we work towards refining the final version. </h10>")
1508
 
1509
  # Inference Preset Row
1510
  # with gr.Row():
 
1481
  else:
1482
  return f'./weights/{model}.pth', "Could not find Index file."
1483
 
1484
+ theme = gr.themes.Base(
1485
+ primary_hue="slate",
1486
+ secondary_hue="slate",
1487
+ neutral_hue="zinc",
1488
+ radius_size="radius_sm",
1489
+ font=[gr.themes.GoogleFont('Roboto'), 'ui-sans-serif', 'system-ui', 'sans-serif'],
1490
  ).set(
1491
+ body_background_fill='*neutral_950',
1492
+ body_background_fill_dark='*neutral_950',
1493
+ border_color_accent_dark='*neutral_900',
1494
+ color_accent_soft_dark='*prim',
1495
+ block_background_fill_dark='*neutral_900',
1496
+ block_border_width='0px',
1497
+ block_border_width_dark='0px',
1498
+ checkbox_background_color_dark='*primary_950',
1499
+ input_background_fill_dark='*neutral_800',
1500
+ slider_color='*neutral_50',
1501
+ slider_color_dark='*neutral_50',
1502
+ button_primary_background_fill='*primary_50',
1503
+ button_primary_background_fill_dark='*primary_50',
1504
+ button_primary_text_color='*neutral_950',
1505
+ button_primary_text_color_dark='*neutral_950',
1506
+ button_secondary_background_fill='*neutral_950',
1507
+ button_secondary_background_fill_dark='*neutral_800'
1508
  )
1509
 
1510
+ with gr.Blocks(theme=theme) as app:
1511
  with gr.Tabs():
1512
  with gr.TabItem("Inference"):
1513
+ gr.HTML("<h1> Ilaria RVC </h1>")
1514
+ gr.HTML("<h10> duplciated to just mess wuth gradio, dont use this </h10>")
1515
 
1516
  # Inference Preset Row
1517
  # with gr.Row():