Spaces:
Sleeping
Sleeping
RMakushkin
commited on
Commit
•
2152801
1
Parent(s):
631487a
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ 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(
|
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 |
filt_ind = filter_by_ganre(df, choice_g)
|
43 |
+
top_dict = recommendation(filt_ind, 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)
|
46 |
st.write('\n')
|