Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -515,7 +515,6 @@ def process_video(video, resize_width=4000, resize_height=3000, frame_skip=5):
|
|
| 515 |
|
| 516 |
io_times.append((time.time() - io_start) * 1000)
|
| 517 |
|
| 518 |
-
torrents
|
| 519 |
out.write(annotated_frame)
|
| 520 |
output_frame_count += 1
|
| 521 |
last_annotated_frame = annotated_frame
|
|
@@ -605,7 +604,7 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="orange")) as iface:
|
|
| 605 |
video_output = gr.Video(label="Processed Video")
|
| 606 |
issue_gallery = gr.Gallery(label="Detected Issues", columns=4, height="auto", object_fit="contain")
|
| 607 |
with gr.Row():
|
| 608 |
-
chart_output = gr.Image(label
|
| 609 |
map_output = gr.Image(label="Issue Locations Map")
|
| 610 |
with gr.Row():
|
| 611 |
logs_output = gr.Textbox(label="Logs", lines=5, interactive=False)
|
|
|
|
| 515 |
|
| 516 |
io_times.append((time.time() - io_start) * 1000)
|
| 517 |
|
|
|
|
| 518 |
out.write(annotated_frame)
|
| 519 |
output_frame_count += 1
|
| 520 |
last_annotated_frame = annotated_frame
|
|
|
|
| 604 |
video_output = gr.Video(label="Processed Video")
|
| 605 |
issue_gallery = gr.Gallery(label="Detected Issues", columns=4, height="auto", object_fit="contain")
|
| 606 |
with gr.Row():
|
| 607 |
+
chart_output = gr.Image(label="Detection Trend")
|
| 608 |
map_output = gr.Image(label="Issue Locations Map")
|
| 609 |
with gr.Row():
|
| 610 |
logs_output = gr.Textbox(label="Logs", lines=5, interactive=False)
|