Update app.py
Browse files
app.py
CHANGED
@@ -18,9 +18,8 @@ def process_and_show_completion(video_input_path, anomaly_threshold_input, fps,
|
|
18 |
return [results[0]] + [None] * 23
|
19 |
|
20 |
exec_time, results_summary, df, mse_embeddings, mse_posture, mse_voice, \
|
21 |
-
mse_plot_embeddings,
|
22 |
-
|
23 |
-
mse_plot_voice, mse_histogram_voice, \
|
24 |
mse_heatmap_embeddings, mse_heatmap_posture, mse_heatmap_voice, \
|
25 |
face_samples_frequent, \
|
26 |
anomaly_faces_embeddings, anomaly_frames_posture_images, \
|
@@ -52,7 +51,7 @@ def process_and_show_completion(video_input_path, anomaly_threshold_input, fps,
|
|
52 |
print(error_message)
|
53 |
import traceback
|
54 |
traceback.print_exc()
|
55 |
-
return [error_message] + [None] * 23
|
56 |
|
57 |
with gr.Blocks() as iface:
|
58 |
gr.Markdown("""
|
@@ -120,10 +119,6 @@ with gr.Blocks() as iface:
|
|
120 |
mse_heatmap_embeddings_store, mse_heatmap_posture_store, mse_heatmap_voice_store,
|
121 |
heatmap_video
|
122 |
]
|
123 |
-
).then(
|
124 |
-
lambda: gr.Group(visible=True),
|
125 |
-
inputs=None,
|
126 |
-
outputs=[results_group]
|
127 |
)
|
128 |
|
129 |
if __name__ == "__main__":
|
|
|
18 |
return [results[0]] + [None] * 23
|
19 |
|
20 |
exec_time, results_summary, df, mse_embeddings, mse_posture, mse_voice, \
|
21 |
+
mse_plot_embeddings, mse_plot_posture, mse_plot_voice, \
|
22 |
+
mse_histogram_embeddings, mse_histogram_posture, mse_histogram_voice, \
|
|
|
23 |
mse_heatmap_embeddings, mse_heatmap_posture, mse_heatmap_voice, \
|
24 |
face_samples_frequent, \
|
25 |
anomaly_faces_embeddings, anomaly_frames_posture_images, \
|
|
|
51 |
print(error_message)
|
52 |
import traceback
|
53 |
traceback.print_exc()
|
54 |
+
return [error_message] + [None] * 23
|
55 |
|
56 |
with gr.Blocks() as iface:
|
57 |
gr.Markdown("""
|
|
|
119 |
mse_heatmap_embeddings_store, mse_heatmap_posture_store, mse_heatmap_voice_store,
|
120 |
heatmap_video
|
121 |
]
|
|
|
|
|
|
|
|
|
122 |
)
|
123 |
|
124 |
if __name__ == "__main__":
|