Spaces:
Running
Running
change
Browse files
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.
|
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
|
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
|