mirror of
https://github.com/open-webui/pipelines
synced 2025-06-26 18:15:58 +00:00
fix
This commit is contained in:
parent
88bf7ec93c
commit
56239abd6b
@ -58,7 +58,7 @@ class Pipeline:
|
||||
try:
|
||||
# Load data from the branch
|
||||
self.documents = await asyncio.to_thread(reader.load_data, branch=branch)
|
||||
self.index = VectorStoreIndex.from_documents(documents)
|
||||
self.index = VectorStoreIndex.from_documents(self.documents)
|
||||
finally:
|
||||
loop.close()
|
||||
|
||||
|
@ -22,7 +22,7 @@ class Pipeline:
|
||||
global documents, index
|
||||
|
||||
self.documents = SimpleDirectoryReader("./data").load_data()
|
||||
self.index = VectorStoreIndex.from_documents(documents)
|
||||
self.index = VectorStoreIndex.from_documents(self.documents)
|
||||
pass
|
||||
|
||||
async def on_shutdown(self):
|
||||
|
Loading…
Reference in New Issue
Block a user