Update lightrag_api_oracle_demo..py
This commit is contained in:
parent
c01f15802d
commit
dcf2641147
1 changed files with 2 additions and 2 deletions
|
|
@ -149,13 +149,13 @@ class Response(BaseModel):
|
|||
|
||||
# API routes
|
||||
|
||||
rag = None # 定义为全局对象
|
||||
rag = None
|
||||
|
||||
|
||||
@asynccontextmanager
|
||||
async def lifespan(app: FastAPI):
|
||||
global rag
|
||||
rag = await init() # 在应用启动时初始化 `rag`
|
||||
rag = await init()
|
||||
print("done!")
|
||||
yield
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue