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)
|
flush=True)
|
||||||
|
|
||||||
@app.get("/health")
|
@app.get("/health")
|
||||||
def health():
|
async def health():
|
||||||
return {"ok": _state["ready"], "model": MODEL_ID, "layer": LAYER}
|
return JSONResponse({"ok": _state["ready"], "model": MODEL_ID,
|
||||||
|
"layer": LAYER})
|
||||||
|
|
||||||
@app.get("/vector")
|
@app.get("/vector")
|
||||||
def vector():
|
def vector():
|
||||||
|
|||||||
Reference in new issue
Block a user