Spaces:
Sleeping
Sleeping
change theshold to 0.5
Browse files
app.py
CHANGED
|
@@ -110,7 +110,7 @@ def search_product(query):
|
|
| 110 |
|
| 111 |
result_summary, found = "", False
|
| 112 |
for res in result:
|
| 113 |
-
if res.score > 0.
|
| 114 |
found = True
|
| 115 |
name = res.payload.get("name", "ไม่ทราบชื่อสินค้า")
|
| 116 |
score = f"{res.score:.4f}"
|
|
|
|
| 110 |
|
| 111 |
result_summary, found = "", False
|
| 112 |
for res in result:
|
| 113 |
+
if res.score > 0.5:
|
| 114 |
found = True
|
| 115 |
name = res.payload.get("name", "ไม่ทราบชื่อสินค้า")
|
| 116 |
score = f"{res.score:.4f}"
|