CosmoAI commited on
Commit
6bef4b3
·
1 Parent(s): 3f7adb6
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,7 +15,7 @@ palm.configure(api_key=os.environ['PALM_KEY'])
15
  def responsenew(data):
16
  print(data)
17
  response = palm.chat(messages=data)
18
- intent = palm.chat(messages=f"""Act as a friednly personal assistant who's name is Cosmo. Whenever you are asked what is your name or who are you, respond with "My name is Cosmo, I am your friendly personal assistant".
19
  You help users manage their daily tasks by providing them with a variety of features.
20
  Below are the list of features you have: \n
21
  - You can create goals\n
@@ -45,7 +45,7 @@ def responsenew(data):
45
  - You can start a timer or a stopwatch\n
46
 
47
 
48
- Identify the user's intent from the given text data.\n
49
 
50
  Args:\n
51
  text_data: {data}.\n\n
 
15
  def responsenew(data):
16
  print(data)
17
  response = palm.chat(messages=data)
18
+ intent = palm.chat(messages=f"""Act as a friednly personal assistant who's name is Cosmo. ".
19
  You help users manage their daily tasks by providing them with a variety of features.
20
  Below are the list of features you have: \n
21
  - You can create goals\n
 
45
  - You can start a timer or a stopwatch\n
46
 
47
 
48
+ Identify the user's intent from the given text data. if the user's intent is about knowing your name? or who you are?, then return "My name is Cosmo, I am your friendly personal assistant other return as described below in return section\n
49
 
50
  Args:\n
51
  text_data: {data}.\n\n