zrguo
commited on
Commit
·
4cb0ca6
1
Parent(s):
b2a4240
Update lightrag_api_oracle_demo..py
Browse files
examples/lightrag_api_oracle_demo..py
CHANGED
@@ -149,13 +149,13 @@ class Response(BaseModel):
|
|
149 |
|
150 |
# API routes
|
151 |
|
152 |
-
rag = None
|
153 |
|
154 |
|
155 |
@asynccontextmanager
|
156 |
async def lifespan(app: FastAPI):
|
157 |
global rag
|
158 |
-
rag = await init()
|
159 |
print("done!")
|
160 |
yield
|
161 |
|
|
|
149 |
|
150 |
# API routes
|
151 |
|
152 |
+
rag = None
|
153 |
|
154 |
|
155 |
@asynccontextmanager
|
156 |
async def lifespan(app: FastAPI):
|
157 |
global rag
|
158 |
+
rag = await init()
|
159 |
print("done!")
|
160 |
yield
|
161 |
|