Update app.py
Browse files
app.py
CHANGED
@@ -498,7 +498,7 @@ def reset_mask(d):
|
|
498 |
backup = cv2.imread(backups[frame_selected]).astype(np.uint8)
|
499 |
cv2.imwrite(frames[frame_selected], backup)
|
500 |
|
501 |
-
d["layers"][0] =
|
502 |
|
503 |
return gr.ImageEditor(value=d)
|
504 |
|
|
|
498 |
backup = cv2.imread(backups[frame_selected]).astype(np.uint8)
|
499 |
cv2.imwrite(frames[frame_selected], backup)
|
500 |
|
501 |
+
d["layers"][0][0:d["layers"][0].shape[0], 0:d["layers"][0].shape[1]] = (0,0,0,0)
|
502 |
|
503 |
return gr.ImageEditor(value=d)
|
504 |
|