Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -76,7 +76,7 @@ def responsenew(data):
|
|
| 76 |
* if intent = sharing a todo list return = "share_todo_list"
|
| 77 |
* if intent = sharing a note return = "share_note"
|
| 78 |
* if intent = notify then return = "send_notify"
|
| 79 |
-
* if intent = show
|
| 80 |
|
| 81 |
""",
|
| 82 |
)
|
|
@@ -131,10 +131,10 @@ def responsenew(data):
|
|
| 131 |
"action": "send_notify",
|
| 132 |
"function": "nothing",
|
| 133 |
}
|
| 134 |
-
elif "
|
| 135 |
respo = {
|
| 136 |
-
"message": "Here is list of
|
| 137 |
-
"action": "
|
| 138 |
"function": "nothing",
|
| 139 |
}
|
| 140 |
else:
|
|
|
|
| 76 |
* if intent = sharing a todo list return = "share_todo_list"
|
| 77 |
* if intent = sharing a note return = "share_note"
|
| 78 |
* if intent = notify then return = "send_notify"
|
| 79 |
+
* if intent = show actions then return = "show_actions"
|
| 80 |
|
| 81 |
""",
|
| 82 |
)
|
|
|
|
| 131 |
"action": "send_notify",
|
| 132 |
"function": "nothing",
|
| 133 |
}
|
| 134 |
+
elif "show_actions" in intent.last:
|
| 135 |
respo = {
|
| 136 |
+
"message": "Here is list of actions you can use:",
|
| 137 |
+
"action": "show_actions",
|
| 138 |
"function": "nothing",
|
| 139 |
}
|
| 140 |
else:
|