bump timeout to 20 mins
This commit is contained in:
parent
e4d5c2ab2c
commit
b723eedd19
@ -57,7 +57,7 @@ async def generate_image(ip, port, positives, negatives, steps):
|
|||||||
],
|
],
|
||||||
}
|
}
|
||||||
client = httpx.AsyncClient()
|
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]
|
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