jaimin commited on
Commit
908c5e2
·
verified ·
1 Parent(s): d179302

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -41,9 +41,9 @@ def normalize_values(points, disp):
41
  def stress(video_path, duration):
42
  global points, emotion_classifier
43
  detector = dlib.get_frontal_face_detector()
44
- predictor_path = "Stress_detection/shape_predictor_68_face_landmarks.dat"
45
  predictor = dlib.shape_predictor(predictor_path)
46
- emotion_classifier = load_model("Stress_detection/XCEPTION.102-0.66.hdf5", compile=False)
47
 
48
  # Open video file
49
  cap = cv2.VideoCapture(video_path)
 
41
  def stress(video_path, duration):
42
  global points, emotion_classifier
43
  detector = dlib.get_frontal_face_detector()
44
+ predictor_path = "Stress/shape_predictor_68_face_landmarks.dat"
45
  predictor = dlib.shape_predictor(predictor_path)
46
+ emotion_classifier = load_model("Stress/XCEPTION.102-0.66.hdf5", compile=False)
47
 
48
  # Open video file
49
  cap = cv2.VideoCapture(video_path)