Spaces:
Sleeping
Sleeping
Commit ·
631487a
1
Parent(s): 12a1907
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,8 +39,7 @@ button = st.button('Отправить запрос', type="primary")
|
|
| 39 |
if text and button:
|
| 40 |
if len(choice_g) == 0:
|
| 41 |
choice_g = ganres_lst
|
| 42 |
-
|
| 43 |
-
st.write(filtered_df.shape)
|
| 44 |
top_dict = recommendation(filtered_df, embeddings, text, n)
|
| 45 |
st.write(f'<p style="font-family: Arial, sans-serif; font-size: 18px; text-align: center;"><strong>Всего подобранных \
|
| 46 |
рекомендаций {len(top_dict)}</strong></p>', unsafe_allow_html=True)
|
|
|
|
| 39 |
if text and button:
|
| 40 |
if len(choice_g) == 0:
|
| 41 |
choice_g = ganres_lst
|
| 42 |
+
filt_ind = filter_by_ganre(df, choice_g)
|
|
|
|
| 43 |
top_dict = recommendation(filtered_df, embeddings, text, n)
|
| 44 |
st.write(f'<p style="font-family: Arial, sans-serif; font-size: 18px; text-align: center;"><strong>Всего подобранных \
|
| 45 |
рекомендаций {len(top_dict)}</strong></p>', unsafe_allow_html=True)
|