Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import time
|
|
6 |
from PIL import Image
|
7 |
|
8 |
# Load the pre-trained model
|
9 |
-
model = load_model('
|
10 |
class_labels = ['Angry', 'Disgust', 'Fear', 'Happy', 'Neutral', 'Sad', 'Surprise']
|
11 |
|
12 |
# Function to preprocess each frame for prediction
|
|
|
6 |
from PIL import Image
|
7 |
|
8 |
# Load the pre-trained model
|
9 |
+
model = load_model('emotion_detection_model_50epochs.h5', compile=False)
|
10 |
class_labels = ['Angry', 'Disgust', 'Fear', 'Happy', 'Neutral', 'Sad', 'Surprise']
|
11 |
|
12 |
# Function to preprocess each frame for prediction
|