Anne31415 commited on
Commit
1ef324e
·
1 Parent(s): 9deba2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -16
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
- "ich weiß es nicht",
99
- "ich weis 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
- "I do not have enough context"
107
- "I don't know",
108
- "I am not sure",
109
- "It is not mentioned",
110
- "No information",
111
- "That's unclear",
112
- "I have no answer to that"
113
- # Add more phrases as you find them
 
 
 
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