selfitcamera commited on
Commit
d06267f
1 Parent(s): 5780146
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -62,7 +62,7 @@ def onClick(cloth_id, pose_image, pose_id, size, request: gr.Request):
62
  else:
63
  x, y, w, h = faces[0]["box"]
64
  H, W = pose_image.shape[:2]
65
- max_face_ratio = 1/2.5
66
  if w/W>max_face_ratio or h/H>max_face_ratio:
67
  return None, "Fatal Error !!! Headshot is not allowed !!! You must upload a full-body or half-body photo!!!", ""
68
 
 
62
  else:
63
  x, y, w, h = faces[0]["box"]
64
  H, W = pose_image.shape[:2]
65
+ max_face_ratio = 1/3.3
66
  if w/W>max_face_ratio or h/H>max_face_ratio:
67
  return None, "Fatal Error !!! Headshot is not allowed !!! You must upload a full-body or half-body photo!!!", ""
68