Spaces:
Runtime error
Runtime error
this
Browse files
app.py
CHANGED
|
@@ -60,6 +60,16 @@ palm.configure(api_key=os.environ["PALM_KEY"])
|
|
| 60 |
# * if intent = sharing a todo list return = "share_todo_list"
|
| 61 |
# * if intent = sharing a note return = "share_note"
|
| 62 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
|
| 64 |
def responsenew(data):
|
| 65 |
print(data)
|
|
@@ -74,14 +84,14 @@ def responsenew(data):
|
|
| 74 |
Identify the user's intent from text_data below:\n
|
| 75 |
Arguments: text_data = {data}\n\n
|
| 76 |
Return the intent as one-word string representing the user's intent, as mentioned below:
|
| 77 |
-
*
|
| 78 |
-
*
|
| 79 |
-
*
|
| 80 |
-
*
|
| 81 |
-
*
|
| 82 |
-
*
|
| 83 |
-
*
|
| 84 |
-
*
|
| 85 |
|
| 86 |
""",
|
| 87 |
)
|
|
|
|
| 60 |
# * if intent = sharing a todo list return = "share_todo_list"
|
| 61 |
# * if intent = sharing a note return = "share_note"
|
| 62 |
|
| 63 |
+
# Return the intent as one-word string representing the user's intent, as mentioned below:
|
| 64 |
+
# * if intent is purchasing coins return "purchase_coins"
|
| 65 |
+
# * if intent is viewing friends return "view_friends"
|
| 66 |
+
# * if intent is viewing groups joined return "view_groups"
|
| 67 |
+
# * if intent is viewing communities joined return "view_communities"
|
| 68 |
+
# * if intent is viewing shared reminders return "shared_reminders"
|
| 69 |
+
# * if intent is viewing user's routines return "my_routines"
|
| 70 |
+
# * if intent is viewing all the groups existing return "view_all_groups"
|
| 71 |
+
# * if intent is viewing all the communities existing return "view_all_communities"
|
| 72 |
+
|
| 73 |
|
| 74 |
def responsenew(data):
|
| 75 |
print(data)
|
|
|
|
| 84 |
Identify the user's intent from text_data below:\n
|
| 85 |
Arguments: text_data = {data}\n\n
|
| 86 |
Return the intent as one-word string representing the user's intent, as mentioned below:
|
| 87 |
+
* purchase_coins
|
| 88 |
+
* view_friends
|
| 89 |
+
* view_groups
|
| 90 |
+
* view_communities
|
| 91 |
+
* shared_reminders
|
| 92 |
+
* my_routines
|
| 93 |
+
* view_all_groups
|
| 94 |
+
* view_all_communities
|
| 95 |
|
| 96 |
""",
|
| 97 |
)
|