dvieri commited on
Commit
ba65288
·
verified ·
1 Parent(s): 3391f44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.load(temp_face_path)
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