Spaces:
Build error
Build error
Update app.py
Browse files
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.
|
| 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}"
|