live: async health (responds while generating)
This commit is contained in:
1 parent
d5f728dbae
commit
cc6a660729
1 file changed
+3
-2
+3
-2
@@ -187,8 +187,9 @@ def startup():
|
||||
flush=True)
|
||||
|
||||
@app.get("/health")
|
||||
def health():
|
||||
return {"ok": _state["ready"], "model": MODEL_ID, "layer": LAYER}
|
||||
async def health():
|
||||
return JSONResponse({"ok": _state["ready"], "model": MODEL_ID,
|
||||
"layer": LAYER})
|
||||
|
||||
@app.get("/vector")
|
||||
def vector():
|
||||
|
||||
Reference in new issue
Block a user