Spaces:
Build error
Build error
woods-today
commited on
Commit
·
351b0b4
1
Parent(s):
50a1127
Working on it
Browse files- routers/training.py +1 -1
routers/training.py
CHANGED
@@ -32,7 +32,7 @@ async def hifunction():
|
|
32 |
print(images[0])
|
33 |
|
34 |
buffered = BytesIO()
|
35 |
-
|
36 |
img_str = base64.b64encode(buffered.getvalue())
|
37 |
|
38 |
# images[0].save("fantasy_landscape.png")
|
|
|
32 |
print(images[0])
|
33 |
|
34 |
buffered = BytesIO()
|
35 |
+
images[0].save(buffered, format="JPEG")
|
36 |
img_str = base64.b64encode(buffered.getvalue())
|
37 |
|
38 |
# images[0].save("fantasy_landscape.png")
|