stable-diffuse-api #2

Merged
benjamyn merged 20 commits from stable-diffuse-api into master 2022-12-11 05:01:12 -05:00
Showing only changes of commit 6ba5bf90cc - Show all commits

View File

@ -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]