Spaces:
Sleeping
Sleeping
maxineattobrah
commited on
Commit
•
f5ce556
1
Parent(s):
69e8141
Update app.py
Browse files
app.py
CHANGED
@@ -6,9 +6,9 @@ import numpy as np
|
|
6 |
|
7 |
|
8 |
# Load the saved model
|
9 |
-
|
10 |
|
11 |
-
model = gr.load('maxineattobrah/RealTimeEmotionDetection', src='models')
|
12 |
|
13 |
# Define the face cascade and emotions
|
14 |
face_cascade = cv2.CascadeClassifier(cv2.data.haarcascades + 'haarcascade_frontalface_default.xml')
|
|
|
6 |
|
7 |
|
8 |
# Load the saved model
|
9 |
+
model = tf.keras.models.load_model('model/model.h5')
|
10 |
|
11 |
+
# model = gr.load('maxineattobrah/RealTimeEmotionDetection', src='models')
|
12 |
|
13 |
# Define the face cascade and emotions
|
14 |
face_cascade = cv2.CascadeClassifier(cv2.data.haarcascades + 'haarcascade_frontalface_default.xml')
|