From 84b1fe1059a2d6ea6474ee16742396f805f7ca53 Mon Sep 17 00:00:00 2001 From: huchenlei Date: Mon, 19 Jun 2023 23:58:30 -0400 Subject: [PATCH] :bug: Fix proxy issue --- scripts/openpose_editor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/openpose_editor.py b/scripts/openpose_editor.py index 21d7dd1..ba9b118 100644 --- a/scripts/openpose_editor.py +++ b/scripts/openpose_editor.py @@ -110,13 +110,13 @@ def mount_openpose_api(_: gr.Blocks, app: FastAPI): name="openpose_editor", ) - @app.get("/openpose_editor_index/", response_class=HTMLResponse) + @app.get("/openpose_editor_index", response_class=HTMLResponse) async def index_get(request: Request): return templates.TemplateResponse( "index.html", {"request": request, "data": {}} ) - @app.post("/openpose_editor_index/", response_class=HTMLResponse) + @app.post("/openpose_editor_index", response_class=HTMLResponse) async def index_post(request: Request, item: Item): return templates.TemplateResponse( "index.html", {"request": request, "data": item.dict()}