Browse Source

kandinsky2 endpoint

master
Hendrik Langer 1 year ago
parent
commit
30ff122f84
  1. 4
      matrix_pygmalion_bot/bot/wrappers/runpod.py

4
matrix_pygmalion_bot/bot/wrappers/runpod.py

@ -147,10 +147,10 @@ class RunpodImageWrapper2(RunpodWrapper):
os.makedirs("./.data/images", exist_ok=True)
files = []
for image in output:
for image in output['images']:
temp_name = next(tempfile._get_candidate_names())
filename = "./.data/images/" + temp_name + ".jpg"
await self.download_image(image["image"], filename)
await self.download_image(image, filename)
files.append(filename)
return files

Loading…
Cancel
Save