Spaces:
Sleeping
Sleeping
RMakushkin
commited on
Commit
•
3394e57
1
Parent(s):
3ae5caa
Update pages/01_🎥_Serials.py
Browse files- pages/01_🎥_Serials.py +4 -4
pages/01_🎥_Serials.py
CHANGED
@@ -4,7 +4,7 @@ import numpy as np
|
|
4 |
import ast
|
5 |
import faiss
|
6 |
|
7 |
-
from func import filter_by_ganre, embed_user
|
8 |
|
9 |
|
10 |
|
@@ -12,9 +12,9 @@ from func import filter_by_ganre, embed_user
|
|
12 |
# Умный поиск сериалов
|
13 |
"""
|
14 |
|
15 |
-
df = pd.read_csv('dataset.csv')
|
16 |
-
embeddings = np.load('embeddings_main.npy')
|
17 |
-
index = faiss.read_index('faiss_index_main.index')
|
18 |
|
19 |
df['ganres'] = df['ganres'].apply(lambda x: ast.literal_eval(x))
|
20 |
|
|
|
4 |
import ast
|
5 |
import faiss
|
6 |
|
7 |
+
from data.func import filter_by_ganre, embed_user
|
8 |
|
9 |
|
10 |
|
|
|
12 |
# Умный поиск сериалов
|
13 |
"""
|
14 |
|
15 |
+
df = pd.read_csv('data/dataset.csv')
|
16 |
+
embeddings = np.load('data/embeddings_main.npy')
|
17 |
+
index = faiss.read_index('data/faiss_index_main.index')
|
18 |
|
19 |
df['ganres'] = df['ganres'].apply(lambda x: ast.literal_eval(x))
|
20 |
|