Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -47,9 +47,9 @@ def verify(image, model, person):
|
|
47 |
|
48 |
if face is not None:
|
49 |
if model == "HOG-SVM":
|
50 |
-
with open(f'./svm_{lower(
|
51 |
svm = joblib.load(f)
|
52 |
-
with open(f'./pca_{lower(
|
53 |
pca = joblib.load(f)
|
54 |
|
55 |
face = preprocess_image_svm(face)
|
|
|
47 |
|
48 |
if face is not None:
|
49 |
if model == "HOG-SVM":
|
50 |
+
with open(f'./svm_{person.lower()}.pkl', 'rb') as f:
|
51 |
svm = joblib.load(f)
|
52 |
+
with open(f'./pca_{person.lower()}.pkl', 'rb') as f:
|
53 |
pca = joblib.load(f)
|
54 |
|
55 |
face = preprocess_image_svm(face)
|