Spaces:
Paused
Paused
woods-today
commited on
Commit
•
771c3c3
1
Parent(s):
370c710
Working on it
Browse files- 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(
|
44 |
|
45 |
return {
|
46 |
-
"imageName" :
|
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 |
|