Spaces:
Runtime error
Runtime error
maxinethegreat commited on
Commit ·
7cc8ae2
1
Parent(s): b1d51d5
testing ui features
Browse files
app.py
CHANGED
|
@@ -45,7 +45,7 @@ def predict_emotion(frame):
|
|
| 45 |
# cv2.destroyAllWindows()
|
| 46 |
|
| 47 |
|
| 48 |
-
image = gr.inputs.Image(source = "webcam", shape=(
|
| 49 |
# label = gr.outputs.Label(num_top_classes=7)
|
| 50 |
|
| 51 |
label = gr.inputs.Image(type = "numpy", label="Emotion Detection")
|
|
@@ -56,7 +56,7 @@ iface = gr.Interface(
|
|
| 56 |
fn = predict_emotion,
|
| 57 |
inputs=image,
|
| 58 |
outputs=label,
|
| 59 |
-
interpretation = "default",
|
| 60 |
title = "Mood Detective",
|
| 61 |
description = "real-time emotion detection"
|
| 62 |
)
|
|
|
|
| 45 |
# cv2.destroyAllWindows()
|
| 46 |
|
| 47 |
|
| 48 |
+
image = gr.inputs.Image(source = "webcam", shape=(48,48) )
|
| 49 |
# label = gr.outputs.Label(num_top_classes=7)
|
| 50 |
|
| 51 |
label = gr.inputs.Image(type = "numpy", label="Emotion Detection")
|
|
|
|
| 56 |
fn = predict_emotion,
|
| 57 |
inputs=image,
|
| 58 |
outputs=label,
|
| 59 |
+
# interpretation = "default",
|
| 60 |
title = "Mood Detective",
|
| 61 |
description = "real-time emotion detection"
|
| 62 |
)
|