mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-21 02:19:59 +08:00
fixed queueing with examples
This commit is contained in:
parent
452d26b88c
commit
15791b1d1d
@ -260,9 +260,8 @@ async def interpret(request: Request):
|
||||
@app.post("/api/queue/push/", dependencies=[Depends(login_check)])
|
||||
async def queue_push(request: Request):
|
||||
body = await request.json()
|
||||
data = body["data"]
|
||||
action = body["action"]
|
||||
job_hash, queue_position = queueing.push({"data": data}, action)
|
||||
job_hash, queue_position = queueing.push(body, action)
|
||||
return {"hash": job_hash, "queue_position": queue_position}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user