Spaces:
Runtime error
Runtime error
pixel3user
commited on
Commit
·
201e8d5
1
Parent(s):
b340e7a
products
Browse files
app.py
CHANGED
|
@@ -117,7 +117,8 @@ def _has_valid_suggestions(raw_suggestions: str) -> bool:
|
|
| 117 |
return False
|
| 118 |
|
| 119 |
lower = cleaned.lower()
|
| 120 |
-
|
|
|
|
| 121 |
return False
|
| 122 |
|
| 123 |
count = _count_products_from_tagged_json(cleaned)
|
|
|
|
| 117 |
return False
|
| 118 |
|
| 119 |
lower = cleaned.lower()
|
| 120 |
+
normalized = " ".join(lower.split())
|
| 121 |
+
if "no relevant products" in normalized:
|
| 122 |
return False
|
| 123 |
|
| 124 |
count = _count_products_from_tagged_json(cleaned)
|