Update app.py
Browse files
app.py
CHANGED
@@ -63,28 +63,28 @@ def on_button_click(video, threshold, fps):
|
|
63 |
results: gr.update(visible=True)
|
64 |
}
|
65 |
|
66 |
-
|
67 |
end_time = time.time()
|
68 |
exec_time = end_time - start_time
|
69 |
|
70 |
return {
|
71 |
execution_time: gr.update(visible=True, value=exec_time),
|
72 |
-
results_text:
|
73 |
-
mse_features_plot:
|
74 |
-
mse_posture_plot:
|
75 |
-
mse_voice_plot:
|
76 |
-
mse_features_hist:
|
77 |
-
mse_posture_hist:
|
78 |
-
mse_voice_hist:
|
79 |
-
mse_features_heatmap:
|
80 |
-
mse_posture_heatmap:
|
81 |
-
mse_voice_heatmap:
|
82 |
-
anomaly_frames_features:
|
83 |
-
anomaly_frames_posture:
|
84 |
-
face_samples_most_frequent:
|
85 |
-
heatmap_video:
|
86 |
-
combined_mse_plot:
|
87 |
-
correlation_heatmap_plot:
|
88 |
video_display_facial: video,
|
89 |
video_display_body: video,
|
90 |
video_display_voice: video
|
|
|
63 |
results: gr.update(visible=True)
|
64 |
}
|
65 |
|
66 |
+
process_results = process_and_show_completion(video, threshold, fps)
|
67 |
end_time = time.time()
|
68 |
exec_time = end_time - start_time
|
69 |
|
70 |
return {
|
71 |
execution_time: gr.update(visible=True, value=exec_time),
|
72 |
+
results_text: process_results[1],
|
73 |
+
mse_features_plot: process_results[2],
|
74 |
+
mse_posture_plot: process_results[3],
|
75 |
+
mse_voice_plot: process_results[4],
|
76 |
+
mse_features_hist: process_results[5],
|
77 |
+
mse_posture_hist: process_results[6],
|
78 |
+
mse_voice_hist: process_results[7],
|
79 |
+
mse_features_heatmap: process_results[8],
|
80 |
+
mse_posture_heatmap: process_results[9],
|
81 |
+
mse_voice_heatmap: process_results[10],
|
82 |
+
anomaly_frames_features: process_results[11],
|
83 |
+
anomaly_frames_posture: process_results[12],
|
84 |
+
face_samples_most_frequent: process_results[13],
|
85 |
+
heatmap_video: process_results[14],
|
86 |
+
combined_mse_plot: process_results[15],
|
87 |
+
correlation_heatmap_plot: process_results[16],
|
88 |
video_display_facial: video,
|
89 |
video_display_body: video,
|
90 |
video_display_voice: video
|