NimaKL commited on
Commit
4ba5bba
·
verified ·
1 Parent(s): 20ae2d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)[[::-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(
 
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(