Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,14 @@ loader = DataReader()
|
|
20 |
# or
|
21 |
# documents = loader.load_data(file=['toolkit.pdf','pdf2','pdf3'])
|
22 |
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
index = VectorStoreIndex.from_documents(documents)
|
25 |
query_engine = index.as_query_engine()
|
26 |
|
|
|
20 |
# or
|
21 |
# documents = loader.load_data(file=['toolkit.pdf','pdf2','pdf3'])
|
22 |
|
23 |
+
### 1st file
|
24 |
+
documents = loader.load_data(file=ChurnData)
|
25 |
+
### 1st file
|
26 |
+
|
27 |
+
### 2nd file
|
28 |
+
documents2 = loader.load_data(file=ChurnData2)
|
29 |
+
documents = documents + documents2
|
30 |
+
### 2nd file
|
31 |
index = VectorStoreIndex.from_documents(documents)
|
32 |
query_engine = index.as_query_engine()
|
33 |
|