Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def init_models():
|
|
32 |
#用初始化llm
|
33 |
Settings.llm = llm
|
34 |
|
35 |
-
documents = SimpleDirectoryReader("
|
36 |
index = VectorStoreIndex.from_documents(documents)
|
37 |
query_engine = index.as_query_engine()
|
38 |
|
|
|
32 |
#用初始化llm
|
33 |
Settings.llm = llm
|
34 |
|
35 |
+
documents = SimpleDirectoryReader("data").load_data()
|
36 |
index = VectorStoreIndex.from_documents(documents)
|
37 |
query_engine = index.as_query_engine()
|
38 |
|