increase timeout
This commit is contained in:
parent
c2d56f2718
commit
9e5876af16
@ -57,7 +57,7 @@ async def generate_image(ip, port, prompt):
|
|||||||
],
|
],
|
||||||
}
|
}
|
||||||
client = httpx.AsyncClient()
|
client = httpx.AsyncClient()
|
||||||
response = await client.post(url, headers=headers, json=json_data, timeout=60)
|
response = await client.post(url, headers=headers, json=json_data, timeout=120)
|
||||||
imageb64 = response.json()["data"][0][0].split("data:image/png;base64,")[1]
|
imageb64 = response.json()["data"][0][0].split("data:image/png;base64,")[1]
|
||||||
|
|
||||||
imgdata = base64.b64decode(imageb64)
|
imgdata = base64.b64decode(imageb64)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user