This commit is contained in:
iVamp 2023-11-18 19:41:38 +08:00
parent 9374e45e1e
commit a77ff095f8
2 changed files with 6 additions and 2 deletions

View File

@ -33,3 +33,7 @@ def sync_documents():
print("更新向量完成")
time.sleep(1 * 5)
if __name__ == '__main__':
sync_documents()

View File

@ -1,11 +1,11 @@
from threading import Thread
import worker
import chunk
import server
if __name__ == '__main__':
# Start the worker thread
worker_thread = Thread(target=worker.sync_documents, args=())
worker_thread = Thread(target=chunk.sync_documents, args=())
worker_thread.start()
# Start the server thread