Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def init_models():
|
|
25 |
Settings.llm = llm
|
26 |
|
27 |
# Load documents
|
28 |
-
documents = SimpleDirectoryReader("
|
29 |
index = VectorStoreIndex.from_documents(documents)
|
30 |
query_engine = index.as_query_engine()
|
31 |
|
|
|
25 |
Settings.llm = llm
|
26 |
|
27 |
# Load documents
|
28 |
+
documents = SimpleDirectoryReader("data.md").load_data() # Assuming data is in a "data" folder in your app directory
|
29 |
index = VectorStoreIndex.from_documents(documents)
|
30 |
query_engine = index.as_query_engine()
|
31 |
|