Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|