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()}