SarowarSaurav commited on
Commit
ec9981c
·
verified ·
1 Parent(s): 6b37d25

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ def get_answer(text):
18
  # Define the Gradio interface
19
  def chatbot_interface(Question):
20
  answer, confidence = get_answer(Question)
21
- if confidence < 0.33:
22
  response = "Not found in the knowledge base"
23
  else:
24
  response = f"Answer: {answer}"
 
18
  # Define the Gradio interface
19
  def chatbot_interface(Question):
20
  answer, confidence = get_answer(Question)
21
+ if confidence < 0.2:
22
  response = "Not found in the knowledge base"
23
  else:
24
  response = f"Answer: {answer}"