Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -103,7 +103,7 @@ def check_liveness():
|
|
| 103 |
|
| 104 |
try:
|
| 105 |
#image = apply_exif_rotation(Image.open(file)).convert('RGB')
|
| 106 |
-
image = Image.open(file)
|
| 107 |
except:
|
| 108 |
result = "Failed to open file"
|
| 109 |
faceState = {"is_not_front": isNotFront, "is_occluded": isOcclusion, "eye_closed": isEyeClosure, "mouth_opened": isMouthOpening,
|
|
|
|
| 103 |
|
| 104 |
try:
|
| 105 |
#image = apply_exif_rotation(Image.open(file)).convert('RGB')
|
| 106 |
+
image = Image.open(file).convert('RGB')
|
| 107 |
except:
|
| 108 |
result = "Failed to open file"
|
| 109 |
faceState = {"is_not_front": isNotFront, "is_occluded": isOcclusion, "eye_closed": isEyeClosure, "mouth_opened": isMouthOpening,
|