Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -111,9 +111,10 @@ def process_input(query, slider_value):
|
|
111 |
# exact_img = filtered_df.loc[filtered_df['productDisplayName']==query, 'image'].iat[0]
|
112 |
|
113 |
if query in matches:
|
|
|
114 |
exact_img = filtered_df.loc[filtered_df['productDisplayName']==query, 'image'].iat[0]
|
115 |
imgs.insert(0, exact_img)
|
116 |
-
matches.insert(0,
|
117 |
# if exact_match:
|
118 |
# imgs.insert(0, exact_img)
|
119 |
# matches.insert(0, exact_match)
|
|
|
111 |
# exact_img = filtered_df.loc[filtered_df['productDisplayName']==query, 'image'].iat[0]
|
112 |
|
113 |
if query in matches:
|
114 |
+
exact_match = filtered_df.loc[filtered_df['productDisplayName']==query, 'productDisplayName'].iat[0]
|
115 |
exact_img = filtered_df.loc[filtered_df['productDisplayName']==query, 'image'].iat[0]
|
116 |
imgs.insert(0, exact_img)
|
117 |
+
matches.insert(0, exact_match)
|
118 |
# if exact_match:
|
119 |
# imgs.insert(0, exact_img)
|
120 |
# matches.insert(0, exact_match)
|