danschnurp commited on
Commit
2867f8f
·
verified ·
1 Parent(s): 9e1ea5c

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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