Spaces:
Runtime error
Runtime error
Commit Β·
4ae0168
1
Parent(s): 71239c8
Update app.py
Browse files
app.py
CHANGED
|
@@ -236,7 +236,7 @@ def sample(prompt):
|
|
| 236 |
return image
|
| 237 |
|
| 238 |
|
| 239 |
-
def to_base64(pil_image, size=(
|
| 240 |
pil_image.thumbnail(size, Image.ANTIALIAS)
|
| 241 |
buffered = BytesIO()
|
| 242 |
pil_image.save(buffered, format="JPEG")
|
|
|
|
| 236 |
return image
|
| 237 |
|
| 238 |
|
| 239 |
+
def to_base64(pil_image, size=(64, 64)):
|
| 240 |
pil_image.thumbnail(size, Image.ANTIALIAS)
|
| 241 |
buffered = BytesIO()
|
| 242 |
pil_image.save(buffered, format="JPEG")
|