Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -55,11 +55,10 @@ def predict(frame):
|
|
55 |
|
56 |
return frameClone, probs
|
57 |
|
58 |
-
|
59 |
-
inp = gr.inputs.Image(source="webcam", label="Your face")
|
60 |
out = [
|
61 |
-
gr.
|
62 |
-
gr.
|
63 |
]
|
64 |
title = "Facial Emotion Recognition"
|
65 |
description = "How well can this model predict your emotions? Take a picture with your webcam, and it will guess if" \
|
|
|
55 |
|
56 |
return frameClone, probs
|
57 |
|
58 |
+
inp = gr.components.Image(source="webcam", label="Your face")
|
|
|
59 |
out = [
|
60 |
+
gr.components.Image(label="Predicted Emotion"),
|
61 |
+
gr.components.Label(num_top_classes=2, label="Top 2 Probabilities")
|
62 |
]
|
63 |
title = "Facial Emotion Recognition"
|
64 |
description = "How well can this model predict your emotions? Take a picture with your webcam, and it will guess if" \
|