From 15791b1d1d27c45d9124318e3e74b3b95e15c0f1 Mon Sep 17 00:00:00 2001 From: Abubakar Abid Date: Sun, 23 Jan 2022 20:17:48 -0500 Subject: [PATCH] fixed queueing with examples --- gradio/app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gradio/app.py b/gradio/app.py index c9c86508d5..b1b793569f 100644 --- a/gradio/app.py +++ b/gradio/app.py @@ -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}