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