Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -91,7 +91,7 @@ def get_similar_and_recommend(input_text):
|
|
91 |
]
|
92 |
dot_products[given_video_index] = -float("inf")
|
93 |
|
94 |
-
top_10_indices = np.argsort(dot_products)[
|
95 |
return [df.iloc[idx].to_dict() for idx in top_10_indices]
|
96 |
|
97 |
top_10_recommended_videos_features = recommend_next_10_videos(
|
|
|
91 |
]
|
92 |
dot_products[given_video_index] = -float("inf")
|
93 |
|
94 |
+
top_10_indices = np.argsort(dot_products)[::-1][:10]
|
95 |
return [df.iloc[idx].to_dict() for idx in top_10_indices]
|
96 |
|
97 |
top_10_recommended_videos_features = recommend_next_10_videos(
|