Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -95,22 +95,25 @@ def display_chat_history(chat_history):
|
|
| 95 |
|
| 96 |
def handle_no_answer(response):
|
| 97 |
no_answer_phrases = [
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
|
|
|
|
|
|
|
|
|
| 114 |
]
|
| 115 |
|
| 116 |
# Check if response matches any phrase in no_answer_phrases
|
|
|
|
| 95 |
|
| 96 |
def handle_no_answer(response):
|
| 97 |
no_answer_phrases = [
|
| 98 |
+
# German phrases
|
| 99 |
+
"ich weiß es nicht",
|
| 100 |
+
"ich bin mir nicht sicher",
|
| 101 |
+
"es wird nicht erwähnt",
|
| 102 |
+
"keine Information",
|
| 103 |
+
"das ist unklar",
|
| 104 |
+
"da habe ich keine Antwort",
|
| 105 |
+
"das kann ich nicht beantworten",
|
| 106 |
+
# English phrases
|
| 107 |
+
"i don't know",
|
| 108 |
+
"i am not sure",
|
| 109 |
+
"it is not mentioned",
|
| 110 |
+
"no information",
|
| 111 |
+
"that is unclear",
|
| 112 |
+
"i have no answer",
|
| 113 |
+
"i cannot answer that",
|
| 114 |
+
"unable to provide an answer",
|
| 115 |
+
"not enough context",
|
| 116 |
+
# Add more phrases as needed
|
| 117 |
]
|
| 118 |
|
| 119 |
# Check if response matches any phrase in no_answer_phrases
|