Spaces:
Sleeping
Sleeping
edit new res.score > 0.8 condition
Browse files
app.py
CHANGED
|
@@ -125,7 +125,7 @@ def search_product(query, model_name):
|
|
| 125 |
result_summary = ""
|
| 126 |
found = False
|
| 127 |
for res in result:
|
| 128 |
-
if res.score > 0.
|
| 129 |
found = True
|
| 130 |
name = res.payload.get("name", "ไม่ทราบชื่อสินค้า")
|
| 131 |
score = f"{res.score:.4f}"
|
|
|
|
| 125 |
result_summary = ""
|
| 126 |
found = False
|
| 127 |
for res in result:
|
| 128 |
+
if res.score > 0.8:
|
| 129 |
found = True
|
| 130 |
name = res.payload.get("name", "ไม่ทราบชื่อสินค้า")
|
| 131 |
score = f"{res.score:.4f}"
|