Spaces:
Sleeping
Sleeping
Update pages/1 Подбор фильмов по описанию✏️🔍.py
#1
by
Bradjan
- opened
pages/1 Подбор фильмов по описанию✏️🔍.py
CHANGED
@@ -57,9 +57,9 @@ if st.button("Искать🔍🎦"):
|
|
57 |
|
58 |
if user_select_genre:
|
59 |
genres_selected = pd.Series(user_select_genre)
|
60 |
-
genre_mask =
|
61 |
for i in range(len(genres_selected)):
|
62 |
-
genre_mask_i =
|
63 |
genre_mask = genre_mask & genre_mask_i
|
64 |
recs = recs[genre_mask]
|
65 |
|
|
|
57 |
|
58 |
if user_select_genre:
|
59 |
genres_selected = pd.Series(user_select_genre)
|
60 |
+
genre_mask = recs['genre'].str.contains('')
|
61 |
for i in range(len(genres_selected)):
|
62 |
+
genre_mask_i = recs['genre'].str.contains(genres_selected.iloc[i])
|
63 |
genre_mask = genre_mask & genre_mask_i
|
64 |
recs = recs[genre_mask]
|
65 |
|