Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ def predict_emotion(frame):
|
|
55 |
# cv2.destroyAllWindows()
|
56 |
|
57 |
|
58 |
-
input_image = gr.Image(
|
59 |
# video = gr.inputs.Video(source = "webcam" )
|
60 |
|
61 |
output_image = gr.Image( type="numpy", label="Detected Emotion" )
|
@@ -75,6 +75,6 @@ iface = gr.Interface(
|
|
75 |
|
76 |
)
|
77 |
|
78 |
-
|
79 |
|
80 |
iface.launch()
|
|
|
55 |
# cv2.destroyAllWindows()
|
56 |
|
57 |
|
58 |
+
input_image = gr.Image(source = "webcam", streaming = True, label="Your Face")
|
59 |
# video = gr.inputs.Video(source = "webcam" )
|
60 |
|
61 |
output_image = gr.Image( type="numpy", label="Detected Emotion" )
|
|
|
75 |
|
76 |
)
|
77 |
|
78 |
+
iface.queue(concurrency_count=1000)
|
79 |
|
80 |
iface.launch()
|