Saad0KH commited on
Commit
b18ece4
Β·
verified Β·
1 Parent(s): 53e3ef9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -58,7 +58,7 @@ def detect_and_segment_persons(image, clothes):
58
 
59
  bboxes, kpss = detector.detect(img)
60
  if bboxes.shape[0] == 0: # Aucun visage dΓ©tectΓ©
61
- return [encode_image_to_base64(remove_background(img))]
62
 
63
  height, width, _ = img.shape # Get image dimensions
64
 
 
58
 
59
  bboxes, kpss = detector.detect(img)
60
  if bboxes.shape[0] == 0: # Aucun visage dΓ©tectΓ©
61
+ return [encode_image_to_base64(remove_background(image))]
62
 
63
  height, width, _ = img.shape # Get image dimensions
64