Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yuexdang authored Apr 4, 2023
1 parent 7717485 commit 49918c9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,7 @@ async def dj_imagine(ctx, prompt: str,
prompt = prompt + ' '

try:
print(str(image))
if image and image.url and "http" in image.url:
if hasattr(image,'url') and "http" in image.url:
prompt = prompt + image.url + " "
if imageratio > 0:
prompt = prompt + "--iw {} ".format(round(((imageratio + 5) * 0.1), 1))
Expand Down

0 comments on commit 49918c9

Please sign in to comment.