Spaces:
Running
Running
Rivalcoder
commited on
Commit
·
0996932
1
Parent(s):
fe8e690
[Edit] Only Average
Browse files
app.py
CHANGED
@@ -312,13 +312,13 @@ def process_video(video_path: str) -> Dict[str, Any]:
|
|
312 |
"results": {
|
313 |
"average_emotions": average_emotions,
|
314 |
"dominant_emotion": dominant_emotion,
|
315 |
-
"detections": largest_face_detections, # Optional: include all detections
|
316 |
-
"summary": {
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
}
|
322 |
},
|
323 |
"error": None
|
324 |
}
|
|
|
312 |
"results": {
|
313 |
"average_emotions": average_emotions,
|
314 |
"dominant_emotion": dominant_emotion,
|
315 |
+
# "detections": largest_face_detections, # Optional: include all detections
|
316 |
+
# "summary": {
|
317 |
+
# "total_frames": total_frames,
|
318 |
+
# "total_detections": len(largest_face_detections),
|
319 |
+
# "emotions_count": {e: len(s) for e, s in emotion_scores.items()},
|
320 |
+
# "dominant_emotion": dominant_emotion
|
321 |
+
# }
|
322 |
},
|
323 |
"error": None
|
324 |
}
|