SicarioOtsutsuki commited on
Commit
ba8da1e
·
verified ·
1 Parent(s): 1c2da80

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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('models/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
 
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