Spaces:
Sleeping
Sleeping
Update ModelSimilarity.py
Browse files- ModelSimilarity.py +1 -1
ModelSimilarity.py
CHANGED
@@ -145,7 +145,7 @@ class MovieSimilarityModel:
|
|
145 |
top_5_genres = self.dataset['genres'].iloc[top_5_indices].values
|
146 |
|
147 |
# Return the top 5 movies with their similarity scores
|
148 |
-
return pd.DataFrame(list(zip(top_5_movies, top_5_scores,top_5_plots,top_5_genres)), columns=['Movie', 'Similarity Score'])
|
149 |
|
150 |
def load_tensor_list(self):
|
151 |
# Load precomputed embeddings and map them to CUDA
|
|
|
145 |
top_5_genres = self.dataset['genres'].iloc[top_5_indices].values
|
146 |
|
147 |
# Return the top 5 movies with their similarity scores
|
148 |
+
return pd.DataFrame(list(zip(top_5_movies, top_5_scores,top_5_plots,top_5_genres)), columns=['Movie', 'Similarity Score','Plot','Genres'])
|
149 |
|
150 |
def load_tensor_list(self):
|
151 |
# Load precomputed embeddings and map them to CUDA
|