Spaces:
Sleeping
Sleeping
Commit
·
8ac4871
1
Parent(s):
20c52cf
updated
Browse files- PDF_Reader.py +1 -5
PDF_Reader.py
CHANGED
@@ -51,9 +51,5 @@ def PDF_4_QA(file_path):
|
|
51 |
#docs = read_pdf(file_path)
|
52 |
#cleaned_docs = Chunks(docs)
|
53 |
cleaned_docs = read_pdf_text(file_path)
|
54 |
-
vectordb = Chroma.from_texts(
|
55 |
-
documents=cleaned_docs,
|
56 |
-
embedding=embeddings,
|
57 |
-
persist_directory="Chroma/docs"
|
58 |
-
)
|
59 |
return vectordb,cleaned_docs
|
|
|
51 |
#docs = read_pdf(file_path)
|
52 |
#cleaned_docs = Chunks(docs)
|
53 |
cleaned_docs = read_pdf_text(file_path)
|
54 |
+
vectordb = Chroma.from_texts(cleaned_docs,embedding=embeddings,persist_directory="Chroma/docs")
|
|
|
|
|
|
|
|
|
55 |
return vectordb,cleaned_docs
|