Upload 2 files
Browse files- app.py +4 -2
- model_2_aug_nocall_entire_model.h5 +3 -0
app.py
CHANGED
@@ -9,9 +9,11 @@ from tensorflow.keras.models import load_model
|
|
9 |
from keras.preprocessing.image import img_to_array
|
10 |
|
11 |
emotions = ['neutral','happiness','surprise','sadness','anger','disgust','fear','contempt','unknown']
|
12 |
-
classifier = load_model("model_9.keras")
|
13 |
-
face_detector_mtcnn = MTCNN()
|
14 |
|
|
|
|
|
|
|
|
|
15 |
|
16 |
def predict_emotion(image):
|
17 |
|
|
|
9 |
from keras.preprocessing.image import img_to_array
|
10 |
|
11 |
emotions = ['neutral','happiness','surprise','sadness','anger','disgust','fear','contempt','unknown']
|
|
|
|
|
12 |
|
13 |
+
#classifier = load_model("model_9.keras")
|
14 |
+
|
15 |
+
face_detector_mtcnn = MTCNN()
|
16 |
+
classifier = load_model("model_2_aug_nocall_entire_model.h5")
|
17 |
|
18 |
def predict_emotion(image):
|
19 |
|
model_2_aug_nocall_entire_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5448afbe43ea3f6fbdec82d2d9e8c03cafaa67dd8223edb6cc5d9c0006bfbfd8
|
3 |
+
size 53869176
|