lekkalar commited on
Commit
5143f36
·
1 Parent(s): b89bbe5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ def load_pdf_and_generate_embeddings(pdf_doc, open_ai_key, relevant_pages):
36
  #In the scenario where none of the page numbers supplied exist in the PDF, we will revert to using the entire PDF.
37
  if len(pages_to_be_loaded) ==0:
38
  pages_to_be_loaded = pages.copy()
39
- print(len(pages_to_be_loaded))
40
 
41
 
42
  #To create a vector store, we use the Chroma class, which takes the documents (pages in our case) and the embeddings instance
 
36
  #In the scenario where none of the page numbers supplied exist in the PDF, we will revert to using the entire PDF.
37
  if len(pages_to_be_loaded) ==0:
38
  pages_to_be_loaded = pages.copy()
39
+ print("The document has been split into # of pages:", len(pages_to_be_loaded))
40
 
41
 
42
  #To create a vector store, we use the Chroma class, which takes the documents (pages in our case) and the embeddings instance