Update retrieve_bot.py
Browse files- retrieve_bot.py +1 -1
retrieve_bot.py
CHANGED
@@ -85,7 +85,7 @@ class ChatBot:
|
|
85 |
top_scores, top_indexes = top_candidates(
|
86 |
bot_cosine_scores, intent=intent, initial_data=self.scripts, top=6
|
87 |
)
|
88 |
-
if top_scores[0] < 0.
|
89 |
answer = random.choice(low_scoring_list)
|
90 |
self.conversation_history.clear()
|
91 |
else:
|
|
|
85 |
top_scores, top_indexes = top_candidates(
|
86 |
bot_cosine_scores, intent=intent, initial_data=self.scripts, top=6
|
87 |
)
|
88 |
+
if top_scores[0] < 0.8:
|
89 |
answer = random.choice(low_scoring_list)
|
90 |
self.conversation_history.clear()
|
91 |
else:
|