aditibera commited on
Commit
a111e40
·
verified ·
1 Parent(s): 8c9e62c
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -113,8 +113,8 @@ def submit_survey(name, country):
113
  class MyCustomTheme(gr.themes.Base):
114
  def __init__(self):
115
  super().__init__(
116
- primary_hue=colors.green, # You can still use named hues for accents
117
- neutral_hue = colors.Color(
118
  name="custom_offwhite",
119
  c50="#fcf1db",
120
  c100="#fcf1db",
@@ -127,15 +127,14 @@ class MyCustomTheme(gr.themes.Base):
127
  c800="#fcf1db",
128
  c900="#fcf1db",
129
  c950="#fcf1db",
130
- text="#0c265b", # Set navy blue text color
131
- ),
132
  font=fonts.GoogleFont("Poppins")
133
  )
134
 
135
  custom_theme = MyCustomTheme()
136
 
137
 
138
- with gr.Blocks(theme=custom_theme) as demo:
139
  name_state = gr.State()
140
  country_state = gr.State()
141
  chat_state = gr.State([])
 
113
  class MyCustomTheme(gr.themes.Base):
114
  def __init__(self):
115
  super().__init__(
116
+ primary_hue=colors.green,
117
+ neutral_hue=colors.Color(
118
  name="custom_offwhite",
119
  c50="#fcf1db",
120
  c100="#fcf1db",
 
127
  c800="#fcf1db",
128
  c900="#fcf1db",
129
  c950="#fcf1db",
130
+ ),
 
131
  font=fonts.GoogleFont("Poppins")
132
  )
133
 
134
  custom_theme = MyCustomTheme()
135
 
136
 
137
+ with gr.Blocks(theme=custom_theme, css="* { color: #0c265b !important; }") as demo:
138
  name_state = gr.State()
139
  country_state = gr.State()
140
  chat_state = gr.State([])