Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -141,7 +141,7 @@ def plex(qr_code_value, text, neg_prompt, modil, one, two, three):
|
|
141 |
pixel_data2 = list(img.getdata())
|
142 |
|
143 |
new_pixel_data = [pixel if pixel[3] > 0 else pixel_data2[i] for i, pixel in enumerate(pixel_data1)]
|
144 |
-
if
|
145 |
new_imoge = Image.new("RGBA", img.size)
|
146 |
new_imoge.putdata(new_pixel_data)
|
147 |
new_imoge.save('./new_imoge.png', 'PNG')
|
|
|
141 |
pixel_data2 = list(img.getdata())
|
142 |
|
143 |
new_pixel_data = [pixel if pixel[3] > 0 else pixel_data2[i] for i, pixel in enumerate(pixel_data1)]
|
144 |
+
if i==1:
|
145 |
new_imoge = Image.new("RGBA", img.size)
|
146 |
new_imoge.putdata(new_pixel_data)
|
147 |
new_imoge.save('./new_imoge.png', 'PNG')
|