From d74478114f0d2153dbe962bc5471524a849a6f49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=93=D1=83?= =?UTF-8?q?=D1=80=D1=8C=D0=B5=D0=B2=20=7C=20Eugene=20Gourieff=20=7C=20?= =?UTF-8?q?=E5=8F=A4=E4=BB=81?= Date: Mon, 23 Sep 2024 14:34:19 +0700 Subject: [PATCH] FIX: async fn, fn name --- scripts/reactor_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/reactor_api.py b/scripts/reactor_api.py index 0316c18..13108c2 100644 --- a/scripts/reactor_api.py +++ b/scripts/reactor_api.py @@ -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)"),