From ddddbfbb7cefd4c29317c89f86f5c0685ba1a3be Mon Sep 17 00:00:00 2001 From: HuangHai <10402852@qq.com> Date: Mon, 25 Aug 2025 19:18:40 +0800 Subject: [PATCH] 'commit' --- dsLightRag/Start.py | 7 +- dsLightRag/static/Midjourney/mj.html | 670 ++------------------------- dsLightRag/static/Midjourney/mj.js | 506 ++++++++++++++++++++ 3 files changed, 549 insertions(+), 634 deletions(-) create mode 100644 dsLightRag/static/Midjourney/mj.js diff --git a/dsLightRag/Start.py b/dsLightRag/Start.py index 6307577f..500b2cf0 100644 --- a/dsLightRag/Start.py +++ b/dsLightRag/Start.py @@ -36,8 +36,8 @@ logger.addHandler(handler) @asynccontextmanager async def lifespan(_: FastAPI): - pool = await init_postgres_pool() - app.state.pool = pool + #pool = await init_postgres_pool() + #app.state.pool = pool asyncio.create_task(train_document_task()) @@ -45,7 +45,8 @@ async def lifespan(_: FastAPI): yield finally: # 应用关闭时销毁连接池 - await close_postgres_pool(pool) + #await close_postgres_pool(pool) + pass app = FastAPI(lifespan=lifespan) diff --git a/dsLightRag/static/Midjourney/mj.html b/dsLightRag/static/Midjourney/mj.html index c18b4e6d..522fa1e5 100644 --- a/dsLightRag/static/Midjourney/mj.html +++ b/dsLightRag/static/Midjourney/mj.html @@ -8,7 +8,7 @@ - + + +
- +