vibs08 commited on
Commit
d4197c8
·
verified ·
1 Parent(s): 6a0e561

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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