lunarflu HF Staff commited on
Commit
00b58e3
·
1 Parent(s): ef4b786

Update deepfloydif.py

Browse files
Files changed (1) hide show
  1. deepfloydif.py +2 -2
deepfloydif.py CHANGED
@@ -84,7 +84,7 @@ def combine_images(png_files, stage_1_images, partial_path):
84
  combined_image.paste(images[3], (images[0].width, images[0].height))
85
  combined_image_path = os.path.join(stage_1_images, f"{partial_path}.png")
86
  combined_image.save(combined_image_path)
87
-
88
 
89
  async def deepfloydif_stage_1(interaction, prompt, client):
90
  """DeepfloydIF command (generate images with realistic text using slash commands)"""
@@ -113,7 +113,7 @@ async def deepfloydif_stage_1(interaction, prompt, client):
113
  png_files = list(glob.glob(f"{stage_1_images}/**/*.png"))
114
 
115
  if png_files:
116
- combine_images(png_files, stage_1_images, partial_path)
117
  if os.environ.get("TEST_ENV") == "True":
118
  print("Images combined for deepfloydif_stage_1")
119
  with open(combined_image_path, "rb") as f:
 
84
  combined_image.paste(images[3], (images[0].width, images[0].height))
85
  combined_image_path = os.path.join(stage_1_images, f"{partial_path}.png")
86
  combined_image.save(combined_image_path)
87
+ return combined_image_path
88
 
89
  async def deepfloydif_stage_1(interaction, prompt, client):
90
  """DeepfloydIF command (generate images with realistic text using slash commands)"""
 
113
  png_files = list(glob.glob(f"{stage_1_images}/**/*.png"))
114
 
115
  if png_files:
116
+ combined_image_path = combine_images(png_files, stage_1_images, partial_path)
117
  if os.environ.get("TEST_ENV") == "True":
118
  print("Images combined for deepfloydif_stage_1")
119
  with open(combined_image_path, "rb") as f: