Update app.py
Browse files
app.py
CHANGED
@@ -309,7 +309,7 @@ def analyze_face(frame):
|
|
309 |
face_crop_2, attribute = get_attributes(frame)
|
310 |
|
311 |
face_crop = face_crop_1 if (face_crop_1 is not None) else face_crop_2
|
312 |
-
return face_crop, liveness_result, attribute
|
313 |
|
314 |
|
315 |
def compare_face(frame1, frame2):
|
@@ -472,4 +472,4 @@ with gr.Blocks(css=css) as demo:
|
|
472 |
|
473 |
gr.HTML('<a href="https://visitorbadge.io/status?path=https%3A%2F%2Fhuggingface.co%2Fspaces%2FRecognito%2FFaceRecognition-LivenessDetection-FaceAnalysis"><img src="https://api.visitorbadge.io/api/combined?path=https%3A%2F%2Fhuggingface.co%2Fspaces%2FRecognito%2FFaceRecognition-LivenessDetection-FaceAnalysis&countColor=%2337d67a&style=flat&labelStyle=upper" /></a>')
|
474 |
|
475 |
-
demo.launch(server_name="0.0.0.0", server_port=
|
|
|
309 |
face_crop_2, attribute = get_attributes(frame)
|
310 |
|
311 |
face_crop = face_crop_1 if (face_crop_1 is not None) else face_crop_2
|
312 |
+
return [face_crop, liveness_result, attribute]
|
313 |
|
314 |
|
315 |
def compare_face(frame1, frame2):
|
|
|
472 |
|
473 |
gr.HTML('<a href="https://visitorbadge.io/status?path=https%3A%2F%2Fhuggingface.co%2Fspaces%2FRecognito%2FFaceRecognition-LivenessDetection-FaceAnalysis"><img src="https://api.visitorbadge.io/api/combined?path=https%3A%2F%2Fhuggingface.co%2Fspaces%2FRecognito%2FFaceRecognition-LivenessDetection-FaceAnalysis&countColor=%2337d67a&style=flat&labelStyle=upper" /></a>')
|
474 |
|
475 |
+
demo.launch(server_name="0.0.0.0", server_port=7860, show_api=False)
|