Spaces:
Running
Running
Update app.py
Browse files[fix]data type
app.py
CHANGED
|
@@ -32,7 +32,7 @@ def generate_mask(img, coord):
|
|
| 32 |
#x, y = map(int, coord.split(','))
|
| 33 |
|
| 34 |
#
|
| 35 |
-
mask = sepia(img,img*0.999999,img*0.999999,img*0.999999,img*0.999999, stack_image=False)
|
| 36 |
return overlay_mask(img, mask)
|
| 37 |
|
| 38 |
def overlay_mask(img, mask):
|
|
|
|
| 32 |
#x, y = map(int, coord.split(','))
|
| 33 |
|
| 34 |
#
|
| 35 |
+
mask = sepia(img,(img*0.999999).astype(np.uint8),(img*0.999999).astype(np.uint8),(img*0.999999).astype(np.uint8),(img*0.999999).astype(np.uint8), stack_image=False)
|
| 36 |
return overlay_mask(img, mask)
|
| 37 |
|
| 38 |
def overlay_mask(img, mask):
|