Spaces:
Runtime error
Runtime error
maxinethegreat
commited on
Commit
·
9e5bff1
1
Parent(s):
39df1b2
test live detection
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ def predict_emotion(frame):
|
|
| 41 |
# cv2.destroyAllWindows()
|
| 42 |
|
| 43 |
|
| 44 |
-
input_image = gr.
|
| 45 |
# video = gr.inputs.Video(source = "webcam" )
|
| 46 |
|
| 47 |
output_image = gr.outputs.Image( type="numpy", label="Detected Emotion" )
|
|
|
|
| 41 |
# cv2.destroyAllWindows()
|
| 42 |
|
| 43 |
|
| 44 |
+
input_image = gr.Image(source = "webcam", streaming = True, label="Your Face")
|
| 45 |
# video = gr.inputs.Video(source = "webcam" )
|
| 46 |
|
| 47 |
output_image = gr.outputs.Image( type="numpy", label="Detected Emotion" )
|