woods-today commited on
Commit
771c3c3
1 Parent(s): 370c710

Working on it

Browse files
Files changed (1) hide show
  1. routers/training.py +2 -2
routers/training.py CHANGED
@@ -40,10 +40,10 @@ async def performAction(actionBody: ActionBody):
40
  images[0].save(buffered, format="JPEG")
41
  img_str = base64.b64encode(buffered.getvalue())
42
  imgUUID = str(uuid.uuid4())
43
- images[0].save(imageUUID+".png")
44
 
45
  return {
46
- "imageName" : imageUUID+".png",
47
  "image": "data:image/jpeg;base64,"+img_str
48
  }
49
 
 
40
  images[0].save(buffered, format="JPEG")
41
  img_str = base64.b64encode(buffered.getvalue())
42
  imgUUID = str(uuid.uuid4())
43
+ images[0].save(imgUUID+".png")
44
 
45
  return {
46
+ "imageName" : imgUUID+".png",
47
  "image": "data:image/jpeg;base64,"+img_str
48
  }
49