Upload folder using huggingface_hub
Browse files
internals/util/commons.py
CHANGED
@@ -99,7 +99,7 @@ def upload_images(images, processName: str, taskId: str):
|
|
99 |
imageUrls = []
|
100 |
for i, image in enumerate(images):
|
101 |
img_io = BytesIO()
|
102 |
-
image.save(img_io, "
|
103 |
img_io.seek(0)
|
104 |
key = "crecoAI/{}{}_{}.png".format(taskId, processName, i)
|
105 |
res = requests.post(
|
|
|
99 |
imageUrls = []
|
100 |
for i, image in enumerate(images):
|
101 |
img_io = BytesIO()
|
102 |
+
image.save(img_io, format="PNG")
|
103 |
img_io.seek(0)
|
104 |
key = "crecoAI/{}{}_{}.png".format(taskId, processName, i)
|
105 |
res = requests.post(
|