Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -68,7 +68,7 @@ def process_image(image):
|
|
68 |
|
69 |
# Return a blank image with error text
|
70 |
error_image = np.zeros((300, 500, 3), dtype=np.uint8)
|
71 |
-
error_message = "Error: More than one face detected.
|
72 |
cv2.putText(error_image, error_message, (20, 150), cv2.FONT_HERSHEY_SIMPLEX, 0.7, (0, 0, 255), 2, cv2.LINE_AA)
|
73 |
|
74 |
return error_image
|
|
|
68 |
|
69 |
# Return a blank image with error text
|
70 |
error_image = np.zeros((300, 500, 3), dtype=np.uint8)
|
71 |
+
error_message = "Error: More than one face detected."
|
72 |
cv2.putText(error_image, error_message, (20, 150), cv2.FONT_HERSHEY_SIMPLEX, 0.7, (0, 0, 255), 2, cv2.LINE_AA)
|
73 |
|
74 |
return error_image
|