FIX: async fn, fn name
This commit is contained in:
parent
f680b43100
commit
d74478114f
@ -188,7 +188,7 @@ def reactor_api(_: gr.Blocks, app: FastAPI):
|
|||||||
return {"facemodels": facemodels}
|
return {"facemodels": facemodels}
|
||||||
|
|
||||||
@app.post("/reactor/facemodels")
|
@app.post("/reactor/facemodels")
|
||||||
def build_face_model(
|
async def reactor_facemodels_build(
|
||||||
source_images: list[str] = Body([""],title="Source Face Image List"),
|
source_images: list[str] = Body([""],title="Source Face Image List"),
|
||||||
name: str = Body("",title="Face Model Name"),
|
name: str = Body("",title="Face Model Name"),
|
||||||
compute_method: int = Body(0,title="Compute Method (Mean, Median, Mode)"),
|
compute_method: int = Body(0,title="Compute Method (Mean, Median, Mode)"),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user