Spaces:
Running
Running
delete space after fuzzy
Browse files
app.py
CHANGED
@@ -88,7 +88,7 @@ def correct_query_merge_phrases(query: str, whitelist, threshold=80, max_ngram=3
|
|
88 |
|
89 |
# ✅ ตัดคำที่มีความยาว 1 ตัวอักษรและไม่ได้อยู่ใน whitelist
|
90 |
cleaned = [word for word in corrected if len(word) > 1 or word in whitelist]
|
91 |
-
return "
|
92 |
|
93 |
|
94 |
# 🌟 Main search function
|
|
|
88 |
|
89 |
# ✅ ตัดคำที่มีความยาว 1 ตัวอักษรและไม่ได้อยู่ใน whitelist
|
90 |
cleaned = [word for word in corrected if len(word) > 1 or word in whitelist]
|
91 |
+
return "".join(cleaned)
|
92 |
|
93 |
|
94 |
# 🌟 Main search function
|