Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -62,8 +62,8 @@ with gr.Blocks() as iface:
|
|
| 62 |
with gr.Row():
|
| 63 |
video_input = gr.Video()
|
| 64 |
|
| 65 |
-
anomaly_threshold = gr.Slider(minimum=1, maximum=5, step=0.1, value=3, label="Anomaly Detection Threshold")
|
| 66 |
-
fps_slider = gr.Slider(minimum=5, maximum=20, step=1, value=10, label="Frames Per Second")
|
| 67 |
process_btn = gr.Button("Detect Anomalies")
|
| 68 |
progress_bar = gr.Progress()
|
| 69 |
execution_time = gr.Number(label="Execution Time (seconds)")
|
|
@@ -76,8 +76,8 @@ with gr.Blocks() as iface:
|
|
| 76 |
mse_features_hist = gr.Plot(label="MSE Distribution: Facial Features")
|
| 77 |
mse_features_heatmap = gr.Plot(label="MSE Heatmap: Facial Features")
|
| 78 |
anomaly_frames_features = gr.Gallery(label="Anomaly Frames (Facial Features)", columns=6, rows=2, height="auto")
|
| 79 |
-
face_samples_most_frequent = gr.Gallery(label="
|
| 80 |
-
face_samples_others = gr.Gallery(label="Other Samples", columns=6, rows=1, height="auto")
|
| 81 |
|
| 82 |
with gr.Tab("Body Posture"):
|
| 83 |
mse_posture_plot = gr.Plot(label="MSE: Body Posture")
|
|
|
|
| 62 |
with gr.Row():
|
| 63 |
video_input = gr.Video()
|
| 64 |
|
| 65 |
+
anomaly_threshold = gr.Slider(minimum=1, maximum=5, step=0.1, value=3, label="Anomaly Detection Threshold (Standard deviation)")
|
| 66 |
+
fps_slider = gr.Slider(minimum=5, maximum=20, step=1, value=10, label="Frames Per Second (FPS)")
|
| 67 |
process_btn = gr.Button("Detect Anomalies")
|
| 68 |
progress_bar = gr.Progress()
|
| 69 |
execution_time = gr.Number(label="Execution Time (seconds)")
|
|
|
|
| 76 |
mse_features_hist = gr.Plot(label="MSE Distribution: Facial Features")
|
| 77 |
mse_features_heatmap = gr.Plot(label="MSE Heatmap: Facial Features")
|
| 78 |
anomaly_frames_features = gr.Gallery(label="Anomaly Frames (Facial Features)", columns=6, rows=2, height="auto")
|
| 79 |
+
#face_samples_most_frequent = gr.Gallery(label="Other Samples", columns=10, rows=2, height="auto")
|
| 80 |
+
#face_samples_others = gr.Gallery(label="Other Samples", columns=6, rows=1, height="auto")
|
| 81 |
|
| 82 |
with gr.Tab("Body Posture"):
|
| 83 |
mse_posture_plot = gr.Plot(label="MSE: Body Posture")
|