🐛 Fix proxy issue
parent
8843a7e10c
commit
84b1fe1059
|
|
@ -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()}
|
||||
|
|
|
|||
Loading…
Reference in New Issue