Spaces:
Runtime error
Runtime error
maxinethegreat
commited on
Commit
·
58eea87
1
Parent(s):
8ecce3e
test live detection
Browse files
app.py
CHANGED
@@ -44,10 +44,10 @@ def predict_emotion(vid):
|
|
44 |
# cv2.destroyAllWindows()
|
45 |
|
46 |
|
47 |
-
input_image = gr.inputs.
|
48 |
# video = gr.inputs.Video(source = "webcam" )
|
49 |
|
50 |
-
output_image = gr.outputs.
|
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
|
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 |
)
|