Spaces:
Build error
Build error
import face_recognition | |
def recognize_face(image): | |
# Simulate face match for now | |
try: | |
faces = face_recognition.face_encodings(image) | |
if faces: | |
return "Customer" | |
else: | |
return "Unknown" | |
except: | |
return "Error reading face" | |