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