sejgup864 commited on
Commit
b09fb1f
·
verified ·
1 Parent(s): ffc985a

colon added

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -147,7 +147,8 @@ def respond(message, history):
147
 
148
  return response['choices'][0]['message']['content'].strip()
149
 
150
- theme = gr.themes.Origin(
 
151
  primary_hue="slate",
152
  secondary_hue="gray",
153
  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"),
@@ -160,11 +161,10 @@ theme = gr.themes.Origin(
160
  link_text_color_visited_dark='*block_label_text_color',
161
  block_info_text_color='*border_color_accent_subdued',
162
  block_label_text_color='*primary_700'
163
- )
164
- with gr.Blocks() as chatbot:
165
  with gr.Row(scale = 2):
166
  gr.Image("Screenshot 2025-07-30 at 1.37.47 PM.png")
167
- with gr.Row(scale = 2)
168
  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)
169
 
170
  chatbot.launch()
 
147
 
148
  return response['choices'][0]['message']['content'].strip()
149
 
150
+
151
+ with gr.Blocks(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"),
 
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
+ )) as chatbot:
 
165
  with gr.Row(scale = 2):
166
  gr.Image("Screenshot 2025-07-30 at 1.37.47 PM.png")
167
+ with gr.Row(scale = 2):
168
  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)
169
 
170
  chatbot.launch()