Spaces:
Runtime error
Runtime error
Chintan Donda
commited on
Commit
·
7d05526
1
Parent(s):
77dca0b
Fixing bug
Browse files- kkms_kssw.py +2 -4
kkms_kssw.py
CHANGED
@@ -48,15 +48,13 @@ class KKMS_KSSW:
|
|
48 |
# Load data from Docs
|
49 |
if os.path.exists(constants_utils.DATA_PATH):
|
50 |
doc_documents = SimpleDirectoryReader(constants_utils.DATA_PATH).load_data()
|
|
|
51 |
|
52 |
# Load data from PDFs only
|
53 |
# pdf_documents = data_loader_utils.load_document(doc_type='pdf', doc_filepath=doc_filepath)
|
54 |
|
55 |
# Load data from URLs & append it to the documents that we read from PDFs
|
56 |
# url_documents = data_loader_utils.load_document(doc_type='url', urls=urls)
|
57 |
-
|
58 |
-
# Merge documents of different data sources
|
59 |
-
self.documents = doc_documents[:]
|
60 |
# self.documents.extend(url_documents)
|
61 |
|
62 |
# Build the Vector store for docs
|
@@ -121,5 +119,5 @@ class KKMS_KSSW:
|
|
121 |
required_keywords=required_keywords,
|
122 |
exclude_keywords=exclude_keywords,
|
123 |
verbose=verbose)
|
124 |
-
|
125 |
return self.response
|
|
|
48 |
# Load data from Docs
|
49 |
if os.path.exists(constants_utils.DATA_PATH):
|
50 |
doc_documents = SimpleDirectoryReader(constants_utils.DATA_PATH).load_data()
|
51 |
+
self.documents = doc_documents[:]
|
52 |
|
53 |
# Load data from PDFs only
|
54 |
# pdf_documents = data_loader_utils.load_document(doc_type='pdf', doc_filepath=doc_filepath)
|
55 |
|
56 |
# Load data from URLs & append it to the documents that we read from PDFs
|
57 |
# url_documents = data_loader_utils.load_document(doc_type='url', urls=urls)
|
|
|
|
|
|
|
58 |
# self.documents.extend(url_documents)
|
59 |
|
60 |
# Build the Vector store for docs
|
|
|
119 |
required_keywords=required_keywords,
|
120 |
exclude_keywords=exclude_keywords,
|
121 |
verbose=verbose)
|
122 |
+
|
123 |
return self.response
|