Skip to content

Commit

Permalink
Update text2img.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Beyondo committed Dec 11, 2022
1 parent 862126b commit c9c644a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions text2img.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ def process(seed, positive_prompt, negative_prompt, guidance_scale, inference_st
if save_to_google_drive:
dir = '/content/gdrive/MyDrive/' + directory
if not os.path.exists(dir): os.makedirs(dir)
imgSavePath = "%s/%d-voidops" % (dir, int(time.mktime(datetime.now().timetuple())))
imgSavePath = "%s/%d-voidops" % (dir, int(time.mktime(datetime.datetime.now().timetuple())))
image.save(imgSavePath + ".png")
print("Saved to " + imgSavePath)
display(image)
print("Saved to " + imgSavePath)
return image

0 comments on commit c9c644a

Please sign in to comment.