vsrinivas commited on
Commit
d41083e
·
verified ·
1 Parent(s): 5d1429a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
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']