Spaces:
Sleeping
Sleeping
test poster request
Browse files
pages/recommendation_system.py
CHANGED
@@ -78,13 +78,16 @@ def recommend(movie_name, nb):
|
|
78 |
for i in movies_list:
|
79 |
temp_movie_id = (movies[movies.title ==i].movie_id).values[0]
|
80 |
movie_ids.append(temp_movie_id)
|
|
|
|
|
|
|
81 |
|
82 |
# fetch poster
|
83 |
-
try:
|
84 |
-
|
85 |
-
|
86 |
-
except:
|
87 |
-
|
88 |
|
89 |
recommend_movies_names.append(i)
|
90 |
return recommend_movies_names, recommend_posters, movie_ids
|
|
|
78 |
for i in movies_list:
|
79 |
temp_movie_id = (movies[movies.title ==i].movie_id).values[0]
|
80 |
movie_ids.append(temp_movie_id)
|
81 |
+
|
82 |
+
poster = fetch_poster(temp_movie_id)
|
83 |
+
recommend_posters.append(poster)
|
84 |
|
85 |
# fetch poster
|
86 |
+
# try:
|
87 |
+
# poster = fetch_poster(temp_movie_id)
|
88 |
+
# recommend_posters.append(poster)
|
89 |
+
# except:
|
90 |
+
# recommend_posters.append(None)
|
91 |
|
92 |
recommend_movies_names.append(i)
|
93 |
return recommend_movies_names, recommend_posters, movie_ids
|