fffiloni commited on
Commit
af90035
1 Parent(s): 53244a3

Update webgui.py

Browse files
Files changed (1) hide show
  1. webgui.py +1 -0
webgui.py CHANGED
@@ -202,6 +202,7 @@ def process_video(uploaded_img, uploaded_audio, width, height, length, seed, fac
202
  face_mask[:, :] = 255
203
  face_img = cv2.resize(face_img, (width, height))
204
  face_mask = cv2.resize(face_mask, (width, height))
 
205
  else:
206
  print("SELECT_BBOX IS NOT NONE")
207
  xyxy = select_bbox[:4]
 
202
  face_mask[:, :] = 255
203
  face_img = cv2.resize(face_img, (width, height))
204
  face_mask = cv2.resize(face_mask, (width, height))
205
+ raise gr.Error("Face Detector could not detect a face in your image. Try with a 512 squared image where the face is clearly visible.")
206
  else:
207
  print("SELECT_BBOX IS NOT NONE")
208
  xyxy = select_bbox[:4]