Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def generate_response(history, query):
|
|
49 |
doc = (db.similarity_search_with_score(query))
|
50 |
score=doc[0][-1]
|
51 |
doc = doc[0][:-1]
|
52 |
-
threshold =
|
53 |
|
54 |
|
55 |
if score > threshold:
|
|
|
49 |
doc = (db.similarity_search_with_score(query))
|
50 |
score=doc[0][-1]
|
51 |
doc = doc[0][:-1]
|
52 |
+
threshold = 1
|
53 |
|
54 |
|
55 |
if score > threshold:
|