Update app.py
Browse files
app.py
CHANGED
@@ -235,7 +235,8 @@ def inpaint(image, invert):
|
|
235 |
else:
|
236 |
# alpha = 255 - image["mask"][:, :, 0:1]
|
237 |
alpha = 255 - image["layers"][0][:, :, 0:1]
|
238 |
-
result = np.concatenate([color, alpha], axis=2)
|
|
|
239 |
return [result]
|
240 |
|
241 |
|
|
|
235 |
else:
|
236 |
# alpha = 255 - image["mask"][:, :, 0:1]
|
237 |
alpha = 255 - image["layers"][0][:, :, 0:1]
|
238 |
+
# result = np.concatenate([color, alpha], axis=2)
|
239 |
+
result = color
|
240 |
return [result]
|
241 |
|
242 |
|