🐛 Fix proxy issue

main
huchenlei 2023-06-19 23:58:30 -04:00
parent 8843a7e10c
commit 84b1fe1059
1 changed files with 2 additions and 2 deletions

View File

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