TIMBOVILL commited on
Commit
0f6bdf0
·
verified ·
1 Parent(s): 8b9fb32

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -1,4 +1,3 @@
1
- from __future__ import annotations
2
  import os
3
  from typing import Iterable
4
  import gradio as gr
@@ -46,7 +45,7 @@ class Frosted(Base):
46
  body_background_fill_dark="rgba(0, 0, 0, 0.8)",
47
  button_primary_background_fill="rgba(255, 255, 255, 0.6)",
48
  button_primary_background_fill_hover="rgba(255, 255, 255, 0.8)",
49
- button_primary_text_color="white",
50
  button_primary_background_fill_dark="rgba(0, 0, 0, 0.6)",
51
  slider_color="rgba(0, 0, 0, 0.3)",
52
  slider_color_dark="rgba(255, 255, 255, 0.3)",
@@ -65,13 +64,15 @@ class Frosted(Base):
65
  border-radius: 10px;
66
  border: 1px solid rgba(255, 255, 255, 0.3);
67
  background: rgba(255, 255, 255, 0.3);
68
- background-image: url('back.png');
69
  background-size: cover;
 
70
  }
71
  .gr-button {
72
  backdrop-filter: blur(5px);
73
  -webkit-backdrop-filter: blur(5px);
74
  background: rgba(255, 255, 255, 0.4);
 
75
  }
76
  """
77
  # Create the directory if it doesn't exist
@@ -88,7 +89,7 @@ class Frosted(Base):
88
  frosted = Frosted()
89
  frosted.apply_custom_css()
90
 
91
- with gr.Blocks(theme=frosted) as demo:
92
  textbox = gr.Textbox(label="Name")
93
  slider = gr.Slider(label="Count", minimum=0, maximum=100, step=1)
94
  with gr.Row():
 
 
1
  import os
2
  from typing import Iterable
3
  import gradio as gr
 
45
  body_background_fill_dark="rgba(0, 0, 0, 0.8)",
46
  button_primary_background_fill="rgba(255, 255, 255, 0.6)",
47
  button_primary_background_fill_hover="rgba(255, 255, 255, 0.8)",
48
+ button_primary_text_color="black",
49
  button_primary_background_fill_dark="rgba(0, 0, 0, 0.6)",
50
  slider_color="rgba(0, 0, 0, 0.3)",
51
  slider_color_dark="rgba(255, 255, 255, 0.3)",
 
64
  border-radius: 10px;
65
  border: 1px solid rgba(255, 255, 255, 0.3);
66
  background: rgba(255, 255, 255, 0.3);
67
+ background-image: url('static/back.png');
68
  background-size: cover;
69
+ color: black;
70
  }
71
  .gr-button {
72
  backdrop-filter: blur(5px);
73
  -webkit-backdrop-filter: blur(5px);
74
  background: rgba(255, 255, 255, 0.4);
75
+ color: black;
76
  }
77
  """
78
  # Create the directory if it doesn't exist
 
89
  frosted = Frosted()
90
  frosted.apply_custom_css()
91
 
92
+ with gr.Blocks(theme=frosted, css_file="static/custom.css") as demo:
93
  textbox = gr.Textbox(label="Name")
94
  slider = gr.Slider(label="Count", minimum=0, maximum=100, step=1)
95
  with gr.Row():