Spaces:
Runtime error
Runtime error
this
Browse files
app.py
CHANGED
|
@@ -9,6 +9,25 @@ palm.configure(api_key=os.environ["PALM_KEY"])
|
|
| 9 |
# Select the PaLM 2 model
|
| 10 |
# model = 'models/text-bison-001'
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
def responsenew(data):
|
| 14 |
print(data)
|
|
@@ -58,25 +77,7 @@ def responsenew(data):
|
|
| 58 |
* if intent = viewing user's routines return = "my_routines"
|
| 59 |
* if intent = viewing all the groups existing on CosmoAI return = "view_all_groups"
|
| 60 |
* if intent = viewing all the communities existing on CosmoAI return = "view_all_communities"
|
| 61 |
-
|
| 62 |
-
* if intent = viewing user's posts return = "view_posts"
|
| 63 |
-
* if intent = viewing user's shared notes return = "view_shared_notes"
|
| 64 |
-
* if intent = viewing user's todo lists return = "view_todo_lists"
|
| 65 |
-
* if intent = viewing user's shared todo lists return = "view_shared_todo_lists"
|
| 66 |
-
* if intent = viewing user's shared routines return = "view_shared_routines"
|
| 67 |
-
* if intent = creating a goal return = "create_goal"
|
| 68 |
-
* if intent = creating a reminder return = "create_reminder"
|
| 69 |
-
* if intent = creating a routine return = "create_routine"
|
| 70 |
-
* if intent = creating a group return = "create_group"
|
| 71 |
-
* if intent = creating a community return = "create_community"
|
| 72 |
-
* if intent = creating a note return = "create_note"
|
| 73 |
-
* if intent = creating a post return = "create_post"
|
| 74 |
-
* if intent = creating a todo list return = "create_todo_list"
|
| 75 |
-
* if intent = sharing a reminder return = "share_reminder"
|
| 76 |
-
* if intent = sharing a routine return = "share_routine"
|
| 77 |
-
* if intent = sharing a group return = "share_group"
|
| 78 |
-
* if intent = sharing a todo list return = "share_todo_list"
|
| 79 |
-
* if intent = sharing a note return = "share_note"
|
| 80 |
""")
|
| 81 |
print(intent)
|
| 82 |
respo = {
|
|
|
|
| 9 |
# Select the PaLM 2 model
|
| 10 |
# model = 'models/text-bison-001'
|
| 11 |
|
| 12 |
+
# * if intent = viewing user's notes return = "view_notes"
|
| 13 |
+
# * if intent = viewing user's posts return = "view_posts"
|
| 14 |
+
# * if intent = viewing user's shared notes return = "view_shared_notes"
|
| 15 |
+
# * if intent = viewing user's todo lists return = "view_todo_lists"
|
| 16 |
+
# * if intent = viewing user's shared todo lists return = "view_shared_todo_lists"
|
| 17 |
+
# * if intent = viewing user's shared routines return = "view_shared_routines"
|
| 18 |
+
# * if intent = creating a goal return = "create_goal"
|
| 19 |
+
# * if intent = creating a reminder return = "create_reminder"
|
| 20 |
+
# * if intent = creating a routine return = "create_routine"
|
| 21 |
+
# * if intent = creating a group return = "create_group"
|
| 22 |
+
# * if intent = creating a community return = "create_community"
|
| 23 |
+
# * if intent = creating a note return = "create_note"
|
| 24 |
+
# * if intent = creating a post return = "create_post"
|
| 25 |
+
# * if intent = creating a todo list return = "create_todo_list"
|
| 26 |
+
# * if intent = sharing a reminder return = "share_reminder"
|
| 27 |
+
# * if intent = sharing a routine return = "share_routine"
|
| 28 |
+
# * if intent = sharing a group return = "share_group"
|
| 29 |
+
# * if intent = sharing a todo list return = "share_todo_list"
|
| 30 |
+
# * if intent = sharing a note return = "share_note"
|
| 31 |
|
| 32 |
def responsenew(data):
|
| 33 |
print(data)
|
|
|
|
| 77 |
* if intent = viewing user's routines return = "my_routines"
|
| 78 |
* if intent = viewing all the groups existing on CosmoAI return = "view_all_groups"
|
| 79 |
* if intent = viewing all the communities existing on CosmoAI return = "view_all_communities"
|
| 80 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
""")
|
| 82 |
print(intent)
|
| 83 |
respo = {
|