From f9e720284bff2b60557e53c5195dc95d4673fee3 Mon Sep 17 00:00:00 2001 From: Luke Robles <98352913+lrobles-iterable@users.noreply.github.com> Date: Thu, 6 Oct 2022 18:09:05 -0700 Subject: [PATCH] bump timeout to 20 mins --- app/stable_diffusion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/stable_diffusion.py b/app/stable_diffusion.py index 7709d89f..82faabe5 100644 --- a/app/stable_diffusion.py +++ b/app/stable_diffusion.py @@ -57,7 +57,7 @@ async def generate_image(ip, port, positives, negatives, steps): ], } client = httpx.AsyncClient() - response = await client.post(url, headers=headers, json=json_data, timeout=300) + response = await client.post(url, headers=headers, json=json_data, timeout=1200) imageb64 = response.json()["data"][0][0].split("data:image/png;base64,")[1] imgdata = base64.b64decode(imageb64)