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