Spaces:
Sleeping
Sleeping
ghbGC
commited on
Commit
·
b5e320c
1
Parent(s):
eb29ee1
update app.py && move README_zh-CN.md to data
Browse files- app.py +1 -1
- README_zh-CN.md → data/README_zh-CN.md +0 -0
app.py
CHANGED
@@ -35,7 +35,7 @@ def init_models():
|
|
35 |
#用初始化llm
|
36 |
Settings.llm = llm
|
37 |
|
38 |
-
documents = SimpleDirectoryReader(
|
39 |
index = VectorStoreIndex.from_documents(documents)
|
40 |
query_engine = index.as_query_engine()
|
41 |
|
|
|
35 |
#用初始化llm
|
36 |
Settings.llm = llm
|
37 |
|
38 |
+
documents = SimpleDirectoryReader("./data").load_data()
|
39 |
index = VectorStoreIndex.from_documents(documents)
|
40 |
query_engine = index.as_query_engine()
|
41 |
|
README_zh-CN.md → data/README_zh-CN.md
RENAMED
File without changes
|