Spaces:
Sleeping
Sleeping
Commit
·
217fa17
1
Parent(s):
c337a87
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,8 @@ if text and button:
|
|
40 |
if len(choice_g) == 0:
|
41 |
choice_g = ganres_lst
|
42 |
filtered_df = filter_by_ganre(df, choice_g)
|
43 |
-
|
|
|
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)
|
46 |
st.write('\n')
|
|
|
40 |
if len(choice_g) == 0:
|
41 |
choice_g = ganres_lst
|
42 |
filtered_df = filter_by_ganre(df, choice_g)
|
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)
|
47 |
st.write('\n')
|