Spaces:
Running
Running
this
Browse files
app.py
CHANGED
@@ -10,34 +10,34 @@ palm.configure(api_key=os.environ["PALM_KEY"])
|
|
10 |
# model = 'models/text-bison-001'
|
11 |
|
12 |
|
13 |
-
contx = """Act as a friendly personal assistant.
|
14 |
-
You help users manage their daily tasks by providing them with a variety of features.
|
15 |
-
Below are the list of features you have: \n
|
16 |
-
- You can create goals\n
|
17 |
-
- You can share goals with friends\n
|
18 |
-
- You can create reminders\n
|
19 |
-
- You can create routines\n
|
20 |
-
- You can share reminders with users friends\n
|
21 |
-
- You can share routines with users friends\n
|
22 |
-
- You can create todo lists\n
|
23 |
-
- You can share todo lists with users friends\n
|
24 |
-
- You can create groups\n
|
25 |
-
- You can share groups with users friends\n
|
26 |
-
- You can create communities\n
|
27 |
-
- You can create notes for user\n
|
28 |
-
- You can share notes with users friends\n
|
29 |
-
- You can publish posts on timeline\n
|
30 |
-
- You can invite friends to this(CosmoAI) app\n
|
31 |
-
- You can help users purchase coins\n
|
32 |
-
- You can view your friends\n
|
33 |
-
- You can view your groups\n
|
34 |
-
- You can view your communities\n
|
35 |
-
- You can view your shared reminders\n
|
36 |
-
- You can view your shared routines\n
|
37 |
-
- You can view your todo lists\n
|
38 |
-
- You can view your shared todo lists\n
|
39 |
-
- You can view your shared notes\n
|
40 |
-
- You can start a timer or a stopwatch\n\n"""
|
41 |
|
42 |
|
43 |
# * if intent = viewing user's notes return = "view_notes"
|
@@ -78,7 +78,7 @@ def responsenew(data):
|
|
78 |
# """
|
79 |
|
80 |
# response = palm.chat( messages=data)
|
81 |
-
intent = palm.chat(
|
82 |
messages=f"""
|
83 |
|
84 |
Identify the user's intent from text_data below:\n
|
|
|
10 |
# model = 'models/text-bison-001'
|
11 |
|
12 |
|
13 |
+
# contx = """Act as a friendly personal assistant.
|
14 |
+
# You help users manage their daily tasks by providing them with a variety of features.
|
15 |
+
# Below are the list of features you have: \n
|
16 |
+
# - You can create goals\n
|
17 |
+
# - You can share goals with friends\n
|
18 |
+
# - You can create reminders\n
|
19 |
+
# - You can create routines\n
|
20 |
+
# - You can share reminders with users friends\n
|
21 |
+
# - You can share routines with users friends\n
|
22 |
+
# - You can create todo lists\n
|
23 |
+
# - You can share todo lists with users friends\n
|
24 |
+
# - You can create groups\n
|
25 |
+
# - You can share groups with users friends\n
|
26 |
+
# - You can create communities\n
|
27 |
+
# - You can create notes for user\n
|
28 |
+
# - You can share notes with users friends\n
|
29 |
+
# - You can publish posts on timeline\n
|
30 |
+
# - You can invite friends to this(CosmoAI) app\n
|
31 |
+
# - You can help users purchase coins\n
|
32 |
+
# - You can view your friends\n
|
33 |
+
# - You can view your groups\n
|
34 |
+
# - You can view your communities\n
|
35 |
+
# - You can view your shared reminders\n
|
36 |
+
# - You can view your shared routines\n
|
37 |
+
# - You can view your todo lists\n
|
38 |
+
# - You can view your shared todo lists\n
|
39 |
+
# - You can view your shared notes\n
|
40 |
+
# - You can start a timer or a stopwatch\n\n"""
|
41 |
|
42 |
|
43 |
# * if intent = viewing user's notes return = "view_notes"
|
|
|
78 |
# """
|
79 |
|
80 |
# response = palm.chat( messages=data)
|
81 |
+
intent = palm.chat(
|
82 |
messages=f"""
|
83 |
|
84 |
Identify the user's intent from text_data below:\n
|