Spaces:
Sleeping
Sleeping
Commit ·
72d44cd
1
Parent(s): a267a62
added more keywords fo ending
Browse files- backend/graph.py +7 -0
backend/graph.py
CHANGED
|
@@ -679,6 +679,13 @@ def _build_message_list(state: SessionState, user_message: str) -> list:
|
|
| 679 |
END_CONVO_PATTERNS = [
|
| 680 |
r"^no$", r"^nope$", r"^nothing$", r"^that'?s? (?:all|it)$",
|
| 681 |
r"^thanks?$", r"^thank you", r"^bye$", r"^ok$", r"^okay$",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 682 |
]
|
| 683 |
is_end_of_convo = any(re.search(p, user_msg_lower) for p in END_CONVO_PATTERNS)
|
| 684 |
|
|
|
|
| 679 |
END_CONVO_PATTERNS = [
|
| 680 |
r"^no$", r"^nope$", r"^nothing$", r"^that'?s? (?:all|it)$",
|
| 681 |
r"^thanks?$", r"^thank you", r"^bye$", r"^ok$", r"^okay$",
|
| 682 |
+
r"^i'm good$", r"^i'm good enough$", r"^i'm good enough with that$",
|
| 683 |
+
r"^i'm good with that$", r"^i'm good with the solution$", r"^i'm good with the approach$",
|
| 684 |
+
r"^i'm good with the recommendations$", r"^i'm good with the advice$", r"^i'm good with the plan$",
|
| 685 |
+
r"^no thank you$", r"^no thank you very much$", r"^no thank you so much$", r"^no thank you very much$",
|
| 686 |
+
r"^no problem$",r"^no thank u$", r"^nah", r"^it's alright$", r"^it's all good$", r"^it's all good with that$",
|
| 687 |
+
r"^it's all good with the solution$", r"^it's all good with the approach$", r"^it's all good with the recommendations$",
|
| 688 |
+
r"^it's all good with the advice$", r"^it's all good with the plan$", r"^it's all good with that$",
|
| 689 |
]
|
| 690 |
is_end_of_convo = any(re.search(p, user_msg_lower) for p in END_CONVO_PATTERNS)
|
| 691 |
|