pjoshi15 commited on
Commit
414b297
β€’
1 Parent(s): 794e6c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -34,9 +34,6 @@ def process_image(input_image: np.ndarray) -> np.ndarray:
34
  # Detect faces
35
  with torch.inference_mode():
36
  faces = face_detector(image)
37
-
38
- if len(faces['bbox']) == 0:
39
- raise ValueError("No faces detected in the image!")
40
 
41
  # Initialize face parser
42
  face_parser = facer.face_parser('farl/lapa/448', device=device)
 
34
  # Detect faces
35
  with torch.inference_mode():
36
  faces = face_detector(image)
 
 
 
37
 
38
  # Initialize face parser
39
  face_parser = facer.face_parser('farl/lapa/448', device=device)