Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from sentence_transformers import SentenceTransformer
|
|
6 |
from resources.functions import recommend, find_rows_with_genres, get_mask_in_range
|
7 |
|
8 |
|
9 |
-
st.markdown(f"<h1 style='text-align: center;'
|
10 |
|
11 |
df = pd.read_csv('resources/DF_FINAL.csv')
|
12 |
genre_lists = df['ganres'].apply(lambda x: x.split(', ') if isinstance(x, str) else [])
|
@@ -16,7 +16,7 @@ st.write(f'<p style="text-align: center; font-family: Arial, sans-serif; font-si
|
|
16 |
для поиска {len(df)}</p>', unsafe_allow_html=True)
|
17 |
|
18 |
st.header(':wrench: Панель инструментов')
|
19 |
-
col1, col2, col3 = st.columns([1, 2,
|
20 |
with col1:
|
21 |
top_k = st.selectbox("Сколько фильмов?", options=[5, 10, 15, 20])
|
22 |
with col2:
|
|
|
6 |
from resources.functions import recommend, find_rows_with_genres, get_mask_in_range
|
7 |
|
8 |
|
9 |
+
st.markdown(f"<h1 style='text-align: center;'>Семантический поиск фильмов", unsafe_allow_html=True)
|
10 |
|
11 |
df = pd.read_csv('resources/DF_FINAL.csv')
|
12 |
genre_lists = df['ganres'].apply(lambda x: x.split(', ') if isinstance(x, str) else [])
|
|
|
16 |
для поиска {len(df)}</p>', unsafe_allow_html=True)
|
17 |
|
18 |
st.header(':wrench: Панель инструментов')
|
19 |
+
col1, col2, col3 = st.columns([1, 2, 2])
|
20 |
with col1:
|
21 |
top_k = st.selectbox("Сколько фильмов?", options=[5, 10, 15, 20])
|
22 |
with col2:
|