Spaces:
Sleeping
Sleeping
maxineattobrah
commited on
Commit
•
69e8141
1
Parent(s):
e92e867
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,9 @@ import numpy as np
|
|
6 |
|
7 |
|
8 |
# Load the saved model
|
9 |
-
model = tf.keras.models.load_model('model/model.h5')
|
|
|
|
|
10 |
|
11 |
# Define the face cascade and emotions
|
12 |
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')
|