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 1dcaa7d commit 7717485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ async def dj_imagine(ctx, prompt: str,

try:
print(str(image))
if image.url and "http" in image.url:
if image and 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 7717485

Please sign in to comment.