maxinethegreat commited on
Commit
f3340c3
·
1 Parent(s): d6d6aa2

test live detection

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -40,10 +40,10 @@ def predict_emotion(frame):
40
  # cv2.destroyAllWindows()
41
 
42
 
43
- input_image = gr.inputs.Image(source = "webcam")
44
  # video = gr.inputs.Video(source = "webcam" )
45
 
46
- output_image = gr.inputs.Image(label="Emotion Detection" )
47
 
48
 
49
 
@@ -53,8 +53,9 @@ iface = gr.Interface(
53
  outputs=output_image,
54
  # interpretation = "default",
55
  title = "Mood Detectives",
56
- description = "Real-Time Emotion Detection\nDetects Angry, Happy, Sad, Fear, Disgust, Surprise, Neutral Facial Expressions\n Press Camera Button Before Pressing Submit",
57
- capture_session = True
 
58
  )
59
 
60
  iface.launch()
 
40
  # cv2.destroyAllWindows()
41
 
42
 
43
+ input_image = gr.inputs.Image(source = "webcam", label="Your Face")
44
  # video = gr.inputs.Video(source = "webcam" )
45
 
46
+ output_image = gr.inputs.Image(type = "numpy", label="Detected Emotion" )
47
 
48
 
49
 
 
53
  outputs=output_image,
54
  # interpretation = "default",
55
  title = "Mood Detectives",
56
+ description = "Real-Time Emotion Detection Using Facial Expressions\nTake A Picture With Your Webcam And It Will Guess IF You Are Angry, Happy, Sad, Fear, Disgust, Surprise or Neutral. \n Press Camera Button Before Pressing Submit.",
57
+ live = True
58
+
59
  )
60
 
61
  iface.launch()