intuitive262 commited on
Commit
a99b38e
·
1 Parent(s): b189dad

Updated app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -77,7 +77,7 @@ def process_image(image, operation_name, age_filters=[], gender_filters=[], sele
77
  face_rgb = cv2.cvtColor(face_img, cv2.COLOR_BGR2RGB)
78
 
79
  caption = f"Face #{i} | {pred['gender']} | {pred['age']}"
80
- face_thumbnails.append({"face": face_rgb, "caption": caption})
81
  # Draw index
82
  # cv2.putText(image_with_boxes, f"#{i}: {pred['gender']}, {pred['age']}",
83
  # (x1, y1-10), cv2.FONT_HERSHEY_SIMPLEX, 0.6, (0, 255, 0), 2)
 
77
  face_rgb = cv2.cvtColor(face_img, cv2.COLOR_BGR2RGB)
78
 
79
  caption = f"Face #{i} | {pred['gender']} | {pred['age']}"
80
+ face_thumbnails.append((face_rgb, caption))
81
  # Draw index
82
  # cv2.putText(image_with_boxes, f"#{i}: {pred['gender']}, {pred['age']}",
83
  # (x1, y1-10), cv2.FONT_HERSHEY_SIMPLEX, 0.6, (0, 255, 0), 2)