From 6ba5bf90ccd8618fb72ec7ddfa8231bca802a2fb Mon Sep 17 00:00:00 2001 From: jordan Date: Sat, 10 Dec 2022 22:45:15 +1100 Subject: [PATCH] Updoot --- DiffuseAPI.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/DiffuseAPI.py b/DiffuseAPI.py index 506eba3..9c0d839 100644 --- a/DiffuseAPI.py +++ b/DiffuseAPI.py @@ -118,14 +118,4 @@ class DiffuseAPI(): return None async with session.post("/sdapi/v1/txt2img", json=payload) as image_json: image_data = await image_json.json() - return image_data["images"][0] - - - - # try: - # req_json = await request.json() - # request.close() - # await sess.close() - # return req_json["images"][0] - # except: - # return None + return image_data["images"][0] \ No newline at end of file