wykonos commited on
Commit
e9e8351
1 Parent(s): 6ce0333

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ movie_data = pd.read_csv("./movies/movie_data.csv")
20
  def recommend(movie_title):
21
  movie_index = movies_list[movies_list["title"] == movie_title].index[0]
22
  distances = movies_similarity[movie_index]
23
- sorted_movie_list = sorted(list(enumerate(distances)), reverse=True, key=lambda x: x[1])[1:3]
24
  recommended_movies, recommended_posters = [], []
25
  unique_movies = set()
26
  for i in sorted_movie_list:
 
20
  def recommend(movie_title):
21
  movie_index = movies_list[movies_list["title"] == movie_title].index[0]
22
  distances = movies_similarity[movie_index]
23
+ sorted_movie_list = sorted(list(enumerate(distances)), reverse=True, key=lambda x: x[1])[1:120]
24
  recommended_movies, recommended_posters = [], []
25
  unique_movies = set()
26
  for i in sorted_movie_list: