Shakhovak commited on
Commit
bddcd9a
1 Parent(s): 4a15036

Update retrieve_bot.py

Browse files
Files changed (1) hide show
  1. 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.9:
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: