Artin2009 commited on
Commit
0fea945
1 Parent(s): 39bf971

Update chain_app.py

Browse files
Files changed (1) hide show
  1. chain_app.py +25 -14
chain_app.py CHANGED
@@ -39,23 +39,26 @@ async def set_starters():
39
  cl.Starter(
40
  label="Morning routine ideation",
41
  message="Can you help me create a personalized morning routine that would help increase my productivity throughout the day? Start by asking me about my current habits and what activities energize me in the morning.",
 
42
  ),
43
 
44
  cl.Starter(
45
  label="Explain superconductors",
46
  message="Explain superconductors like I'm five years old.",
 
47
  ),
48
  cl.Starter(
49
  label="Python script for daily email reports",
50
  message="Write a script to automate sending daily email reports in Python, and walk me through how I would set it up.",
 
51
  ),
52
  cl.Starter(
53
  label="Text inviting friend to wedding",
54
  message="Write a text asking a friend to be my plus-one at a wedding next month. I want to keep it super short and casual, and offer an out.",
 
55
  )
56
  ]
57
 
58
-
59
  @cl.set_chat_profiles
60
  async def chat_profile():
61
  return [
@@ -241,27 +244,35 @@ async def chat_profile(current_user: cl.User):
241
  icon="https://picsum.photos/250",
242
  markdown_description="The underlying LLM model is **GPT-3.5**, a *175B parameter model* trained on 410GB of text data.",
243
  starters=[
244
- cl.Starter(
245
- label="Morning routine ideation",
246
- message="Can you help me create a personalized morning routine that would help increase my productivity throughout the day? Start by asking me about my current habits and what activities energize me in the morning.",
247
- icon="/public/idea.svg",
 
 
 
 
 
 
248
  ),
249
- cl.Starter(
250
- label="Explain superconductors",
251
- message="Explain superconductors like I'm five years old.",
252
- icon="/public/learn.svg",
253
  ),
254
- ],
 
 
 
 
 
255
  )
256
  ]
257
 
258
  @cl.on_chat_start
259
  async def on_chat_start():
260
  chat_profile = cl.user_session.get("chat_profile")
261
- if not chat_profile:
262
- await cl.Message(
263
- content='please choose a model to start'
264
- ).send()
265
 
266
  if chat_profile == 'neural-brain-AI':
267
  await cl.ChatSettings(
 
39
  cl.Starter(
40
  label="Morning routine ideation",
41
  message="Can you help me create a personalized morning routine that would help increase my productivity throughout the day? Start by asking me about my current habits and what activities energize me in the morning.",
42
+ icon="https://chainlit-rag-copilot-r2xd.onrender.com/public/idea.svg",
43
  ),
44
 
45
  cl.Starter(
46
  label="Explain superconductors",
47
  message="Explain superconductors like I'm five years old.",
48
+ icon="https://chainlit-rag-copilot-r2xd.onrender.com/public/learn.svg",
49
  ),
50
  cl.Starter(
51
  label="Python script for daily email reports",
52
  message="Write a script to automate sending daily email reports in Python, and walk me through how I would set it up.",
53
+ icon="https://chainlit-rag-copilot-r2xd.onrender.com/public/terminal.svg",
54
  ),
55
  cl.Starter(
56
  label="Text inviting friend to wedding",
57
  message="Write a text asking a friend to be my plus-one at a wedding next month. I want to keep it super short and casual, and offer an out.",
58
+ icon="https://chainlit-rag-copilot-r2xd.onrender.com/public/write.svg",
59
  )
60
  ]
61
 
 
62
  @cl.set_chat_profiles
63
  async def chat_profile():
64
  return [
 
244
  icon="https://picsum.photos/250",
245
  markdown_description="The underlying LLM model is **GPT-3.5**, a *175B parameter model* trained on 410GB of text data.",
246
  starters=[
247
+ cl.Starter(
248
+ label="Morning routine ideation",
249
+ message="Can you help me create a personalized morning routine that would help increase my productivity throughout the day? Start by asking me about my current habits and what activities energize me in the morning.",
250
+ icon="https://chainlit-rag-copilot-r2xd.onrender.com/public/idea.svg",
251
+ ),
252
+
253
+ cl.Starter(
254
+ label="Explain superconductors",
255
+ message="Explain superconductors like I'm five years old.",
256
+ icon="https://chainlit-rag-copilot-r2xd.onrender.com/public/learn.svg",
257
  ),
258
+ cl.Starter(
259
+ label="Python script for daily email reports",
260
+ message="Write a script to automate sending daily email reports in Python, and walk me through how I would set it up.",
261
+ icon="https://chainlit-rag-copilot-r2xd.onrender.com/public/terminal.svg",
262
  ),
263
+ cl.Starter(
264
+ label="Text inviting friend to wedding",
265
+ message="Write a text asking a friend to be my plus-one at a wedding next month. I want to keep it super short and casual, and offer an out.",
266
+ icon="https://chainlit-rag-copilot-r2xd.onrender.com/public/write.svg",
267
+ )
268
+ ]
269
  )
270
  ]
271
 
272
  @cl.on_chat_start
273
  async def on_chat_start():
274
  chat_profile = cl.user_session.get("chat_profile")
275
+
 
 
 
276
 
277
  if chat_profile == 'neural-brain-AI':
278
  await cl.ChatSettings(