Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -103,6 +103,7 @@ def responsenew(data):
|
|
| 103 |
* if intent = sharing a group return = "share_group"
|
| 104 |
* if intent = sharing a todo list return = "share_todo_list"
|
| 105 |
* if intent = sharing a note return = "share_note"
|
|
|
|
| 106 |
|
| 107 |
""",
|
| 108 |
)
|
|
@@ -151,6 +152,12 @@ def responsenew(data):
|
|
| 151 |
# "action": "nothing",
|
| 152 |
# "function": "nothing",
|
| 153 |
# }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 154 |
else:
|
| 155 |
respo = {
|
| 156 |
"message": response.last,
|
|
|
|
| 103 |
* if intent = sharing a group return = "share_group"
|
| 104 |
* if intent = sharing a todo list return = "share_todo_list"
|
| 105 |
* if intent = sharing a note return = "share_note"
|
| 106 |
+
* if intent is anything else apart all the above return "no_thing"
|
| 107 |
|
| 108 |
""",
|
| 109 |
)
|
|
|
|
| 152 |
# "action": "nothing",
|
| 153 |
# "function": "nothing",
|
| 154 |
# }
|
| 155 |
+
elif "no_thing" in intent.last:
|
| 156 |
+
respo = {
|
| 157 |
+
"message": response.last,
|
| 158 |
+
"action": "nothing",
|
| 159 |
+
"function": "nothing",
|
| 160 |
+
}
|
| 161 |
else:
|
| 162 |
respo = {
|
| 163 |
"message": response.last,
|