Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def init_models():
|
|
35 |
#用初始化llm
|
36 |
Settings.llm = llm
|
37 |
|
38 |
-
documents = SimpleDirectoryReader("README_zh-CN.md").load_data()
|
39 |
index = VectorStoreIndex.from_documents(documents)
|
40 |
query_engine = index.as_query_engine()
|
41 |
|
|
|
35 |
#用初始化llm
|
36 |
Settings.llm = llm
|
37 |
|
38 |
+
documents = SimpleDirectoryReader(input_files="README_zh-CN.md").load_data()
|
39 |
index = VectorStoreIndex.from_documents(documents)
|
40 |
query_engine = index.as_query_engine()
|
41 |
|