Skip to content

Commit

Permalink
fix: sdwebui send image
Browse files Browse the repository at this point in the history
  • Loading branch information
lss233 committed Apr 17, 2023
1 parent 2bf9761 commit 4ddfcd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drawing/sdwebui.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ async def text_to_img(self, prompt):
resp.raise_for_status()
r = resp.json()

for i in r.get('images', []):
return Image(base64=i)
return [Image(base64=i) for i in r.get('images', [])]


async def img_to_img(self, init_images: List[Image], prompt=''):
payload = {
Expand Down

0 comments on commit 4ddfcd8

Please sign in to comment.