freealise commited on
Commit
2d20c9f
1 Parent(s): 827e23a

Update app.py

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