Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -75,7 +75,8 @@ def build_faiss_index(dataset: pd.DataFrame) -> Tuple[faiss.IndexFlatIP, np.ndar
|
|
75 |
|
76 |
|
77 |
def compute_correlations_faiss(index: faiss.IndexFlatIP, book_titles: List[str],
|
78 |
-
target_book
|
|
|
79 |
emb = create_embedding([target_book])
|
80 |
# target_vector = book_titles.index(emb)
|
81 |
|
|
|
75 |
|
76 |
|
77 |
def compute_correlations_faiss(index: faiss.IndexFlatIP, book_titles: List[str],
|
78 |
+
target_book, ) -> pd.DataFrame:
|
79 |
+
print(target_book, type(target_book))
|
80 |
emb = create_embedding([target_book])
|
81 |
# target_vector = book_titles.index(emb)
|
82 |
|