djl234 commited on
Commit
6b1055a
·
verified ·
1 Parent(s): 77df495

Update app.py

Browse files

[fix]data type

Files changed (1) hide show
  1. app.py +1 -1
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):