Spaces:
Sleeping
Sleeping
Commit
•
13cc058
1
Parent(s):
9eb87e4
Update app.py
Browse files
app.py
CHANGED
@@ -50,10 +50,10 @@ if page == "Главная":
|
|
50 |
# Получение случайных 10 строк
|
51 |
random_rows = df[['movie_title', 'description']].sample(n=10).reset_index(drop=True)
|
52 |
random_rows.index = random_rows.index + 1
|
53 |
-
|
54 |
-
|
55 |
st.markdown(f"<span style='font-size:{20}px; color:violet'>{'Сегодня мы подобрали для вас следующие фильмы:'}</span>", unsafe_allow_html=True)
|
56 |
-
st.
|
57 |
|
58 |
if page == "Подбор фильмов по описанию":
|
59 |
# Загрузка предварительно обученной модели ruBERT
|
|
|
50 |
# Получение случайных 10 строк
|
51 |
random_rows = df[['movie_title', 'description']].sample(n=10).reset_index(drop=True)
|
52 |
random_rows.index = random_rows.index + 1
|
53 |
+
|
54 |
+
# Вывод на страничке Streamlit
|
55 |
st.markdown(f"<span style='font-size:{20}px; color:violet'>{'Сегодня мы подобрали для вас следующие фильмы:'}</span>", unsafe_allow_html=True)
|
56 |
+
st.dataframe(random_rows, index=False)
|
57 |
|
58 |
if page == "Подбор фильмов по описанию":
|
59 |
# Загрузка предварительно обученной модели ruBERT
|