Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -66,7 +66,7 @@ def process_input(query, slider_value):
|
|
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[
|
70 |
#####################
|
71 |
try:
|
72 |
slider_value = float(slider_value)
|
|
|
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.filter(lambda x: x['productDisplayName'] in filtered_items)
|
70 |
#####################
|
71 |
try:
|
72 |
slider_value = float(slider_value)
|