Penality commited on
Commit
8504e03
·
verified ·
1 Parent(s): ed47330

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -53,6 +53,7 @@ def store_document_data(PDF_FILE):
53
 
54
  try:
55
  index = faiss.IndexFlatL2(embedding.shape[1])
 
56
  index_file = "index.bin"
57
  faiss.write_index(index, index_file)
58
  doc_index = index.ntotal - 1
 
53
 
54
  try:
55
  index = faiss.IndexFlatL2(embedding.shape[1])
56
+ print(index, index.ntotal)
57
  index_file = "index.bin"
58
  faiss.write_index(index, index_file)
59
  doc_index = index.ntotal - 1