We have updated the search_engine_model.py file to sort the resultant values of a search in the correct order, because it was reversed
Browse files- search_engine_model.py +1 -1
search_engine_model.py
CHANGED
@@ -51,7 +51,7 @@ class SearchEngineModel():
|
|
51 |
search_results_df = pd.DataFrame(search_results)
|
52 |
search_results_df.insert(0, "images_names", names_column)
|
53 |
search_results_df.columns = ['images_names', 'similarity']
|
54 |
-
search_results_df = search_results_df.sort_values(by='similarity')
|
55 |
search_results = search_results_df.values
|
56 |
|
57 |
return search_results
|
|
|
51 |
search_results_df = pd.DataFrame(search_results)
|
52 |
search_results_df.insert(0, "images_names", names_column)
|
53 |
search_results_df.columns = ['images_names', 'similarity']
|
54 |
+
search_results_df = search_results_df.sort_values(by='similarity', ascending=False)
|
55 |
search_results = search_results_df.values
|
56 |
|
57 |
return search_results
|