Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -63,6 +63,7 @@ def hybrid_scale(dense, sparse, alpha):
|
|
63 |
|
64 |
def process_input(query, slider_value):
|
65 |
#####################
|
|
|
66 |
pattern = r"(?=.*\b" + r"\b)(?=.*\b".join(map(re.escape, search_words)) + r"\b)"
|
67 |
filtered_items = [item for item in item_list if re.search(pattern, item)]
|
68 |
filtered_df = fashion[fashion['productDisplayName'].isin(filtered_items)]
|
|
|
63 |
|
64 |
def process_input(query, slider_value):
|
65 |
#####################
|
66 |
+
search_words = query.title().split()
|
67 |
pattern = r"(?=.*\b" + r"\b)(?=.*\b".join(map(re.escape, search_words)) + r"\b)"
|
68 |
filtered_items = [item for item in item_list if re.search(pattern, item)]
|
69 |
filtered_df = fashion[fashion['productDisplayName'].isin(filtered_items)]
|