Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -147,11 +147,11 @@ def generate_image_from_text(pos_prompt, seed):
|
|
147 |
image = Image.open(io.BytesIO(base64_image_data))
|
148 |
|
149 |
|
150 |
-
webp_image_io = io.BytesIO()
|
151 |
-
image = image.convert('RGB') # Convert to RGB for WebP compatibility
|
152 |
image.save(webp_image_io, format='WEBP')
|
153 |
|
154 |
-
webp_image_io.seek(0)
|
155 |
|
156 |
return Image.open(webp_image_io)
|
157 |
|
|
|
147 |
image = Image.open(io.BytesIO(base64_image_data))
|
148 |
|
149 |
|
150 |
+
# webp_image_io = io.BytesIO()
|
151 |
+
# image = image.convert('RGB') # Convert to RGB for WebP compatibility
|
152 |
image.save(webp_image_io, format='WEBP')
|
153 |
|
154 |
+
# webp_image_io.seek(0)
|
155 |
|
156 |
return Image.open(webp_image_io)
|
157 |
|