Spaces:
Running
on
Zero
Running
on
Zero
Fix type annotation
Browse files
app.py
CHANGED
@@ -70,7 +70,7 @@ def binarize_mask(mask: np.ndarray) -> np.ndarray:
|
|
70 |
return mask
|
71 |
|
72 |
|
73 |
-
def update_trimap(foreground_mask_editor:
|
74 |
foreground = foreground_mask_editor["layers"][0]
|
75 |
foreground = binarize_mask(foreground)
|
76 |
|
|
|
70 |
return mask
|
71 |
|
72 |
|
73 |
+
def update_trimap(foreground_mask_editor: dict, unknown_mask_editor: dict) -> np.ndarray:
|
74 |
foreground = foreground_mask_editor["layers"][0]
|
75 |
foreground = binarize_mask(foreground)
|
76 |
|