Spaces:
Sleeping
Sleeping
Commit ·
6a1b5d7
1
Parent(s): 73bf17a
updated
Browse files- PDF_Reader.py +2 -2
PDF_Reader.py
CHANGED
|
@@ -49,10 +49,10 @@ def Chunks(docs):
|
|
| 49 |
def PDF_4_QA(file_path):
|
| 50 |
#docs = read_pdf(file_path)
|
| 51 |
#cleaned_docs = Chunks(docs)
|
| 52 |
-
read_pdf_text(file_path)
|
| 53 |
vectordb = Chroma.from_documents(
|
| 54 |
documents=cleaned_docs,
|
| 55 |
embedding=embeddings,
|
| 56 |
persist_directory="Chroma/docs"
|
| 57 |
)
|
| 58 |
-
return vectordb,
|
|
|
|
| 49 |
def PDF_4_QA(file_path):
|
| 50 |
#docs = read_pdf(file_path)
|
| 51 |
#cleaned_docs = Chunks(docs)
|
| 52 |
+
cleaned_docs = read_pdf_text(file_path)
|
| 53 |
vectordb = Chroma.from_documents(
|
| 54 |
documents=cleaned_docs,
|
| 55 |
embedding=embeddings,
|
| 56 |
persist_directory="Chroma/docs"
|
| 57 |
)
|
| 58 |
+
return vectordb,cleaned_docs
|