Spaces:
Runtime error
Runtime error
fix
Browse files- .ipynb_checkpoints/app-checkpoint.py +1 -1
- app.py +1 -1
.ipynb_checkpoints/app-checkpoint.py
CHANGED
|
@@ -31,7 +31,7 @@ def init_models():
|
|
| 31 |
#用初始化llm
|
| 32 |
Settings.llm = llm
|
| 33 |
|
| 34 |
-
documents = SimpleDirectoryReader("./data").load_data()
|
| 35 |
index = VectorStoreIndex.from_documents(documents)
|
| 36 |
query_engine = index.as_query_engine()
|
| 37 |
|
|
|
|
| 31 |
#用初始化llm
|
| 32 |
Settings.llm = llm
|
| 33 |
|
| 34 |
+
documents = SimpleDirectoryReader("./data/xtuner").load_data()
|
| 35 |
index = VectorStoreIndex.from_documents(documents)
|
| 36 |
query_engine = index.as_query_engine()
|
| 37 |
|
app.py
CHANGED
|
@@ -31,7 +31,7 @@ def init_models():
|
|
| 31 |
#用初始化llm
|
| 32 |
Settings.llm = llm
|
| 33 |
|
| 34 |
-
documents = SimpleDirectoryReader("./data").load_data()
|
| 35 |
index = VectorStoreIndex.from_documents(documents)
|
| 36 |
query_engine = index.as_query_engine()
|
| 37 |
|
|
|
|
| 31 |
#用初始化llm
|
| 32 |
Settings.llm = llm
|
| 33 |
|
| 34 |
+
documents = SimpleDirectoryReader("./data/xtuner").load_data()
|
| 35 |
index = VectorStoreIndex.from_documents(documents)
|
| 36 |
query_engine = index.as_query_engine()
|
| 37 |
|