Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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:
|
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:
|