Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -89,7 +89,7 @@ def verify(image, model, person):
|
|
89 |
if face is not None:
|
90 |
if model == "Siamese":
|
91 |
siamese = SiameseNetwork()
|
92 |
-
siamese.load_state_dict(torch.load(f'siamese_{person.lower()}.pth')
|
93 |
siamese.eval()
|
94 |
|
95 |
face = preprocess_image_siamese(face)
|
|
|
89 |
if face is not None:
|
90 |
if model == "Siamese":
|
91 |
siamese = SiameseNetwork()
|
92 |
+
siamese.load_state_dict(torch.load(f'siamese_{person.lower()}.pth'))
|
93 |
siamese.eval()
|
94 |
|
95 |
face = preprocess_image_siamese(face)
|