Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -77,7 +77,7 @@ def build_faiss_index(dataset: pd.DataFrame) -> Tuple[faiss.IndexFlatIP, np.ndar
|
|
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 |
|
83 |
|
|
|
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[0]])
|
81 |
# target_vector = book_titles.index(emb)
|
82 |
|
83 |
|