increase timeout
This commit is contained in:
parent
01e1375daa
commit
dd61786256
@ -57,7 +57,7 @@ async def generate_image(ip, port, prompt):
|
||||
],
|
||||
}
|
||||
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]
|
||||
|
||||
imgdata = base64.b64decode(imageb64)
|
||||
|
Loading…
x
Reference in New Issue
Block a user