jayparmr commited on
Commit
38a7af6
1 Parent(s): ea5c647

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. internals/util/commons.py +1 -1
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, "JPEG", quality=100)
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(