abrar-adnan commited on
Commit
89a385f
1 Parent(s): 118994a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -85,6 +85,15 @@ def video_processing(video_file, encoded_video):
85
  except Exception as e:
86
  pass
87
 
 
 
 
 
 
 
 
 
 
88
  # Predict the class of the resized face image using the model
89
  result = model.predict(resized_face_image)
90
  print(result[0])
 
85
  except Exception as e:
86
  pass
87
 
88
+ print(emotion[0]['emotion'])
89
+ angry += emotion[0]['emotion']['angry']
90
+ disgust += emotion[0]['emotion']['disgust']
91
+ fear += emotion[0]['emotion']['fear']
92
+ happy += emotion[0]['emotion']['happy']
93
+ sad += emotion[0]['emotion']['sad']
94
+ surprise += emotion[0]['emotion']['surprise']
95
+ neutral += emotion[0]['emotion']['neutral']
96
+
97
  # Predict the class of the resized face image using the model
98
  result = model.predict(resized_face_image)
99
  print(result[0])