Update app.py
Browse files
app.py
CHANGED
@@ -567,7 +567,7 @@ book_embeddings = load_embeddings_from_cache()
|
|
567 |
|
568 |
if query:
|
569 |
found = False
|
570 |
-
threshold =
|
571 |
|
572 |
# بررسی اینکه آیا امبدینگهای سوال قبلاً محاسبه شده یا خیر
|
573 |
query_embedding = model.encode(query, convert_to_tensor=True)
|
|
|
567 |
|
568 |
if query:
|
569 |
found = False
|
570 |
+
threshold =0.7
|
571 |
|
572 |
# بررسی اینکه آیا امبدینگهای سوال قبلاً محاسبه شده یا خیر
|
573 |
query_embedding = model.encode(query, convert_to_tensor=True)
|