Spaces:
Runtime error
Runtime error
maxinethegreat
commited on
Commit
·
27bc994
1
Parent(s):
6ba23b2
test live detection
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ def predict_emotion(frame):
|
|
43 |
input_image = gr.inputs.Image(source = "webcam", streaming = True)
|
44 |
# video = gr.inputs.Video(source = "webcam" )
|
45 |
|
46 |
-
output_image = gr.inputs.Image(
|
47 |
|
48 |
|
49 |
|
@@ -54,7 +54,7 @@ iface = gr.Interface(
|
|
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 |
-
|
58 |
)
|
59 |
|
60 |
iface.launch()
|
|
|
43 |
input_image = gr.inputs.Image(source = "webcam", streaming = True)
|
44 |
# video = gr.inputs.Video(source = "webcam" )
|
45 |
|
46 |
+
output_image = gr.inputs.Image(label="Emotion Detection" )
|
47 |
|
48 |
|
49 |
|
|
|
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()
|