Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -110,7 +110,7 @@ def receive_image(image):
|
|
110 |
face_locations = face_recognition.face_locations(rgb_small_frame)
|
111 |
face_encodings = face_recognition.face_encodings(small_frame, face_locations)
|
112 |
face_names = []
|
113 |
-
emit("result",{"name":"level 33","score":
|
114 |
for face_encoding in face_encodings:
|
115 |
emit("result",{"name":"in for ","score":"34"})
|
116 |
matches = face_recognition.compare_faces(known_face_encodings, face_encoding)
|
|
|
110 |
face_locations = face_recognition.face_locations(rgb_small_frame)
|
111 |
face_encodings = face_recognition.face_encodings(small_frame, face_locations)
|
112 |
face_names = []
|
113 |
+
emit("result",{"name":"level 33","score":str(len(face_encodings))})
|
114 |
for face_encoding in face_encodings:
|
115 |
emit("result",{"name":"in for ","score":"34"})
|
116 |
matches = face_recognition.compare_faces(known_face_encodings, face_encoding)
|