Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -99,7 +99,7 @@ def process_input(query, slider_value):
|
|
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']
|
102 |
-
exact_match = filtered_df.loc[filtered_df['productDisplayName']==query, 'productDisplayName'].iat[0
|
103 |
print(f"Exact match: {exact_match}")
|
104 |
exact_img = filtered_df.loc[filtered_df['productDisplayName']==query, 'image'].iat[0]
|
105 |
|
|
|
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']
|
102 |
+
exact_match = filtered_df.loc[filtered_df['productDisplayName']==query, 'productDisplayName'].iat[0]
|
103 |
print(f"Exact match: {exact_match}")
|
104 |
exact_img = filtered_df.loc[filtered_df['productDisplayName']==query, 'image'].iat[0]
|
105 |
|