maxinethegreat commited on
Commit
58eea87
·
1 Parent(s): 8ecce3e

test live detection

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -44,10 +44,10 @@ def predict_emotion(vid):
44
  # cv2.destroyAllWindows()
45
 
46
 
47
- input_image = gr.inputs.Video(source = "webcam", label="Your Face")
48
  # video = gr.inputs.Video(source = "webcam" )
49
 
50
- output_image = gr.outputs.Video( label="Detected Emotion" )
51
 
52
 
53
 
@@ -57,7 +57,7 @@ iface = gr.Interface(
57
  outputs=output_image,
58
  # interpretation = "default",
59
  title = "Mood Detectives",
60
- 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.",
61
  live = True
62
 
63
  )
 
44
  # cv2.destroyAllWindows()
45
 
46
 
47
+ input_image = gr.inputs.Image(source = "webcam", label="Your Face")
48
  # video = gr.inputs.Video(source = "webcam" )
49
 
50
+ output_image = gr.outputs.Image( type="numpy", label="Detected Emotion" )
51
 
52
 
53
 
 
57
  outputs=output_image,
58
  # interpretation = "default",
59
  title = "Mood Detectives",
60
+ 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 the camera button before pressing submit.",
61
  live = True
62
 
63
  )