RajaThor commited on
Commit
9938593
·
verified ·
1 Parent(s): 8ec329c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -80,9 +80,7 @@ def load_and_encode(image_path):
80
  return None
81
 
82
  # Modify detect_and_align_faces function to detect and align multiple faces
83
- def detect_and_align_faces(image_path):
84
- image = face_recognition.load_image_file(image_path)
85
-
86
  # Resize the image to a fixed width (you can adjust the width as needed)
87
  target_width = 800
88
  aspect_ratio = image.shape[1] / image.shape[0]
 
80
  return None
81
 
82
  # Modify detect_and_align_faces function to detect and align multiple faces
83
+ def detect_and_align_faces(image):
 
 
84
  # Resize the image to a fixed width (you can adjust the width as needed)
85
  target_width = 800
86
  aspect_ratio = image.shape[1] / image.shape[0]