Spaces:
Sleeping
Sleeping
yanyoyo
commited on
Commit
·
4520ab0
1
Parent(s):
3304317
fix
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def init_models():
|
|
| 22 |
)
|
| 23 |
Settings.llm = llm
|
| 24 |
|
| 25 |
-
documents = SimpleDirectoryReader("
|
| 26 |
index = VectorStoreIndex.from_documents(documents)
|
| 27 |
query_engine = index.as_query_engine()
|
| 28 |
|
|
|
|
| 22 |
)
|
| 23 |
Settings.llm = llm
|
| 24 |
|
| 25 |
+
documents = SimpleDirectoryReader(input_dir="./data").load_data()
|
| 26 |
index = VectorStoreIndex.from_documents(documents)
|
| 27 |
query_engine = index.as_query_engine()
|
| 28 |
|