Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -96,6 +96,10 @@ def process_input(query, slider_value):
|
|
96 |
imgs = [images[int(r["id"])] for r in result["matches"]]
|
97 |
matches = [x["metadata"]['productDisplayName'] for x in result["matches"]]
|
98 |
|
|
|
|
|
|
|
|
|
99 |
###########
|
100 |
# exact_match = filtered_df.filter(lambda x: x['productDisplayName'] == query)[0]['productDisplayName']
|
101 |
# exact_img = filtered_df.filter(lambda x: x['productDisplayName'] == query)[0]['image']
|
|
|
96 |
imgs = [images[int(r["id"])] for r in result["matches"]]
|
97 |
matches = [x["metadata"]['productDisplayName'] for x in result["matches"]]
|
98 |
|
99 |
+
##########################
|
100 |
+
print(f"1st matches: {matches}")
|
101 |
+
##############################
|
102 |
+
|
103 |
###########
|
104 |
# exact_match = filtered_df.filter(lambda x: x['productDisplayName'] == query)[0]['productDisplayName']
|
105 |
# exact_img = filtered_df.filter(lambda x: x['productDisplayName'] == query)[0]['image']
|