Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -96,7 +96,7 @@ def verify(image, model, person):
|
|
96 |
siamese.load_state_dict(torch.load(f'siamese_{person.lower()}.pth'))
|
97 |
siamese.eval()
|
98 |
|
99 |
-
face = Image.
|
100 |
|
101 |
face = preprocess_image_siamese(face)
|
102 |
|
|
|
96 |
siamese.load_state_dict(torch.load(f'siamese_{person.lower()}.pth'))
|
97 |
siamese.eval()
|
98 |
|
99 |
+
face = Image.open(temp_face_path)
|
100 |
|
101 |
face = preprocess_image_siamese(face)
|
102 |
|