sejgup864 commited on
Commit
22cc09f
·
verified ·
1 Parent(s): c155c90

updated theme colors

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -149,14 +149,18 @@ def respond(message, history):
149
  return response['choices'][0]['message']['content'].strip()
150
 
151
  theme = gr.themes.Origin(
152
- primary_hue="green",
153
  secondary_hue="gray",
154
  neutral_hue=gr.themes.Color(c100="rgba(125.68459887583033, 156.39999999999998, 116.61403508771929, 1)", c200="rgba(99.08364420988758, 135.30937500000002, 93.17356085526315, 1)", c300="rgba(67.57919407894738, 117.61875, 67.87640217807872, 1)", c400="rgba(36.76016995614036, 71.028125, 43.97777236629195, 1)", c50="rgba(166.18545723684213, 199.590625, 153.19455866228068, 1)", c500="rgba(26.72097438681656, 34.63750000000001, 26.28196271929825, 1)", c600="rgba(161.45572916666669, 193.746875, 161.6475212378641, 1)", c700="rgba(175.81945659810935, 196.45624999999998, 166.2984923245614, 1)", c800="rgba(80.57386380088572, 107.365625, 77.22790570175438, 1)", c900="rgba(82.96707524271844, 106.675, 80.00625, 1)", c950="#0b0f19"),
155
  radius_size="lg",
156
  font=[gr.themes.GoogleFont('Titillium Web'), 'ui-sans-serif', 'system-ui', 'sans-serif'],
157
  font_mono=[gr.themes.GoogleFont('EB Garamond'), 'ui-monospace', 'Consolas', 'monospace'],
158
  ).set(
159
- background_fill_secondary='*neutral_600'
 
 
 
 
160
  )
161
  chatbot = gr.ChatInterface(respond, type="messages", description = "Hey fam, my name is Sage and I'm your personal chatbot and overall person to talk to when life gets to be a little to much! What's your name, and how have you been feeling lately? If you or someone you know is planning to harm someone or themselves, call these numbers. Nationwide Suicide Prevention Hotline: 9-8-8", theme = theme)
162
  chatbot.launch()
 
149
  return response['choices'][0]['message']['content'].strip()
150
 
151
  theme = gr.themes.Origin(
152
+ primary_hue="slate",
153
  secondary_hue="gray",
154
  neutral_hue=gr.themes.Color(c100="rgba(125.68459887583033, 156.39999999999998, 116.61403508771929, 1)", c200="rgba(99.08364420988758, 135.30937500000002, 93.17356085526315, 1)", c300="rgba(67.57919407894738, 117.61875, 67.87640217807872, 1)", c400="rgba(36.76016995614036, 71.028125, 43.97777236629195, 1)", c50="rgba(166.18545723684213, 199.590625, 153.19455866228068, 1)", c500="rgba(26.72097438681656, 34.63750000000001, 26.28196271929825, 1)", c600="rgba(161.45572916666669, 193.746875, 161.6475212378641, 1)", c700="rgba(175.81945659810935, 196.45624999999998, 166.2984923245614, 1)", c800="rgba(80.57386380088572, 107.365625, 77.22790570175438, 1)", c900="rgba(82.96707524271844, 106.675, 80.00625, 1)", c950="#0b0f19"),
155
  radius_size="lg",
156
  font=[gr.themes.GoogleFont('Titillium Web'), 'ui-sans-serif', 'system-ui', 'sans-serif'],
157
  font_mono=[gr.themes.GoogleFont('EB Garamond'), 'ui-monospace', 'Consolas', 'monospace'],
158
  ).set(
159
+ background_fill_secondary='*neutral_600',
160
+ link_text_color='*button_cancel_text_color_hover',
161
+ link_text_color_visited_dark='*block_label_text_color',
162
+ block_info_text_color='*border_color_accent_subdued',
163
+ block_label_text_color='*primary_700'
164
  )
165
  chatbot = gr.ChatInterface(respond, type="messages", description = "Hey fam, my name is Sage and I'm your personal chatbot and overall person to talk to when life gets to be a little to much! What's your name, and how have you been feeling lately? If you or someone you know is planning to harm someone or themselves, call these numbers. Nationwide Suicide Prevention Hotline: 9-8-8", theme = theme)
166
  chatbot.launch()