Updoot
This commit is contained in:
1 parent
7c6d64bb0f
commit
6ba5bf90cc
1 file changed
+1
-11
+1
-11
@@ -118,14 +118,4 @@ class DiffuseAPI():
|
|||||||
return None
|
return None
|
||||||
async with session.post("/sdapi/v1/txt2img", json=payload) as image_json:
|
async with session.post("/sdapi/v1/txt2img", json=payload) as image_json:
|
||||||
image_data = await image_json.json()
|
image_data = await image_json.json()
|
||||||
return image_data["images"][0]
|
return image_data["images"][0]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# try:
|
|
||||||
# req_json = await request.json()
|
|
||||||
# request.close()
|
|
||||||
# await sess.close()
|
|
||||||
# return req_json["images"][0]
|
|
||||||
# except:
|
|
||||||
# return None
|
|
||||||
Reference in new issue
Block a user