sejgup864 commited on
Commit
2f52e21
·
verified ·
1 Parent(s): 4e015c1

theme added

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -148,7 +148,17 @@ def respond(message, history):
148
 
149
  return response['choices'][0]['message']['content'].strip()
150
 
151
- 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?")
 
 
 
 
 
 
 
 
 
 
152
  chatbot.launch()
153
 
154
  ### If you or someone you know is planning to harm someone or themselves, call these numbers.
 
148
 
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?", theme = theme)
162
  chatbot.launch()
163
 
164
  ### If you or someone you know is planning to harm someone or themselves, call these numbers.