Spaces:
Sleeping
Sleeping
Update document_chat.py
Browse files- document_chat.py +1 -1
document_chat.py
CHANGED
@@ -19,7 +19,7 @@ def initialize_vector_store():
|
|
19 |
return vector_store
|
20 |
vector_store = initialize_vector_store()
|
21 |
def ingest_pdf(pdf_path):
|
22 |
-
loader =
|
23 |
documents = loader.load()
|
24 |
|
25 |
#split text into smaller chunks
|
|
|
19 |
return vector_store
|
20 |
vector_store = initialize_vector_store()
|
21 |
def ingest_pdf(pdf_path):
|
22 |
+
loader = PyMuPDFLoader(pdf_path)
|
23 |
documents = loader.load()
|
24 |
|
25 |
#split text into smaller chunks
|