Spaces:
Runtime error
Runtime error
Dhrumit1314
commited on
Commit
•
38dc5ea
1
Parent(s):
09bdd22
Update app.py
Browse files
app.py
CHANGED
@@ -15,8 +15,8 @@ import datetime
|
|
15 |
# Load models
|
16 |
face_classifier = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
|
17 |
emotion_model = load_model('emotion_detection_model_50epochs.h5')
|
18 |
-
age_model = load_model('
|
19 |
-
gender_model = load_model('
|
20 |
|
21 |
class_labels = ['Angry', 'Disgust', 'Fear', 'Happy', 'Neutral', 'Sad', 'Surprise']
|
22 |
gender_labels = ['Male', 'Female']
|
|
|
15 |
# Load models
|
16 |
face_classifier = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
|
17 |
emotion_model = load_model('emotion_detection_model_50epochs.h5')
|
18 |
+
age_model = load_model('age_model.h5')
|
19 |
+
gender_model = load_model('gender_model.h5')
|
20 |
|
21 |
class_labels = ['Angry', 'Disgust', 'Fear', 'Happy', 'Neutral', 'Sad', 'Surprise']
|
22 |
gender_labels = ['Male', 'Female']
|