Artin2009 commited on
Commit
516efce
1 Parent(s): 9d8cbe0

Update chain_app.py

Browse files
Files changed (1) hide show
  1. chain_app.py +27 -0
chain_app.py CHANGED
@@ -33,6 +33,33 @@ co = cohere.Client(
33
  # response = requests.post(API_URL, headers=headers, json=payload)
34
  # return response.json()
35
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  @cl.set_chat_profiles
37
  async def chat_profile():
38
  return [
 
33
  # response = requests.post(API_URL, headers=headers, json=payload)
34
  # return response.json()
35
 
36
+ @cl.set_starters
37
+ async def set_starters():
38
+ return [
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="/public/idea.svg",
43
+ ),
44
+
45
+ cl.Starter(
46
+ label="Explain superconductors",
47
+ message="Explain superconductors like I'm five years old.",
48
+ icon="/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="/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="/public/write.svg",
59
+ )
60
+ ]
61
+
62
+
63
  @cl.set_chat_profiles
64
  async def chat_profile():
65
  return [