Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ from PIL import Image
|
|
| 5 |
import tensorflow as tf
|
| 6 |
face_detector = cv2.CascadeClassifier(cv2.data.haarcascades + 'haarcascade_frontalface_default.xml')
|
| 7 |
# Load the Keras model
|
| 8 |
-
model = tf.keras.models.load_model("
|
| 9 |
|
| 10 |
# Mapping of emotion labels to their indices
|
| 11 |
emotion_label_dict = {
|
|
|
|
| 5 |
import tensorflow as tf
|
| 6 |
face_detector = cv2.CascadeClassifier(cv2.data.haarcascades + 'haarcascade_frontalface_default.xml')
|
| 7 |
# Load the Keras model
|
| 8 |
+
model = tf.keras.models.load_model("./affectnet_CNN_VGG_FIVEEMO_FINE_FINAL.h5")
|
| 9 |
|
| 10 |
# Mapping of emotion labels to their indices
|
| 11 |
emotion_label_dict = {
|