FIX: async fn, fn name

This commit is contained in:
Евгений Гурьев | Eugene Gourieff | 古仁 2024-09-23 14:34:19 +07:00
parent f680b43100
commit d74478114f

View File

@ -188,7 +188,7 @@ def reactor_api(_: gr.Blocks, app: FastAPI):
return {"facemodels": facemodels}
@app.post("/reactor/facemodels")
def build_face_model(
async def reactor_facemodels_build(
source_images: list[str] = Body([""],title="Source Face Image List"),
name: str = Body("",title="Face Model Name"),
compute_method: int = Body(0,title="Compute Method (Mean, Median, Mode)"),