Spaces:
Runtime error
Runtime error
atualizando app.py
Browse files
app.py
CHANGED
|
@@ -232,7 +232,7 @@ def recomendacao(filme, nota):
|
|
| 232 |
user_rating = ratings_df.loc[ratings_df['userId'] == predictions[0]]
|
| 233 |
top_ratings = user_rating.sort_values(by='rating', ascending=False)
|
| 234 |
|
| 235 |
-
|
| 236 |
top_movies = top_ratings.head(5)['movieId'].tolist()
|
| 237 |
|
| 238 |
recomendacoes = []
|
|
|
|
| 232 |
user_rating = ratings_df.loc[ratings_df['userId'] == predictions[0]]
|
| 233 |
top_ratings = user_rating.sort_values(by='rating', ascending=False)
|
| 234 |
|
| 235 |
+
top_ratings = top_ratings.drop(top_ratings[top_ratings['movieId'] == f_filme].index)
|
| 236 |
top_movies = top_ratings.head(5)['movieId'].tolist()
|
| 237 |
|
| 238 |
recomendacoes = []
|