Update app.py
Browse files
app.py
CHANGED
@@ -103,11 +103,10 @@ with gr.Blocks() as iface:
|
|
103 |
anomaly_threshold = gr.Slider(minimum=1, maximum=5, step=0.1, value=3, label="Anomaly Detection Threshold (Standard deviation)")
|
104 |
fps_slider = gr.Slider(minimum=5, maximum=20, step=1, value=10, label="Frames Per Second (FPS)")
|
105 |
process_btn = gr.Button("Detect Anomalies")
|
106 |
-
progress_bar = gr.Progress()
|
107 |
|
108 |
execution_time = gr.Number(label="Execution Time (seconds)", visible=False)
|
109 |
|
110 |
-
description = gr.Markdown("""
|
111 |
# Multimodal Behavioral Anomalies Detection
|
112 |
|
113 |
The purpose of this tool is to detect anomalies in facial expressions, body language, and voice over the timeline of a video.
|
@@ -141,9 +140,10 @@ with gr.Blocks() as iface:
|
|
141 |
|
142 |
## Conclusion
|
143 |
This tool offers solutions for detecting behavioral anomalies in video content. However, users should be aware of its limitations and interpret results with caution.
|
144 |
-
"""
|
145 |
|
146 |
-
|
|
|
147 |
with gr.TabItem("Facial Features"):
|
148 |
video_display_facial = gr.Video(label="Input Video")
|
149 |
results_text = gr.TextArea(label="Faces Breakdown", lines=5)
|
|
|
103 |
anomaly_threshold = gr.Slider(minimum=1, maximum=5, step=0.1, value=3, label="Anomaly Detection Threshold (Standard deviation)")
|
104 |
fps_slider = gr.Slider(minimum=5, maximum=20, step=1, value=10, label="Frames Per Second (FPS)")
|
105 |
process_btn = gr.Button("Detect Anomalies")
|
|
|
106 |
|
107 |
execution_time = gr.Number(label="Execution Time (seconds)", visible=False)
|
108 |
|
109 |
+
description = gr.Markdown(visible=True, value="""
|
110 |
# Multimodal Behavioral Anomalies Detection
|
111 |
|
112 |
The purpose of this tool is to detect anomalies in facial expressions, body language, and voice over the timeline of a video.
|
|
|
140 |
|
141 |
## Conclusion
|
142 |
This tool offers solutions for detecting behavioral anomalies in video content. However, users should be aware of its limitations and interpret results with caution.
|
143 |
+
""")
|
144 |
|
145 |
+
results = gr.Tabs(visible=False)
|
146 |
+
with results:
|
147 |
with gr.TabItem("Facial Features"):
|
148 |
video_display_facial = gr.Video(label="Input Video")
|
149 |
results_text = gr.TextArea(label="Faces Breakdown", lines=5)
|