Update app.py
Browse files
app.py
CHANGED
|
@@ -15,11 +15,11 @@ def analyze_selected_video(video_path):
|
|
| 15 |
|
| 16 |
demo = gr.Interface(
|
| 17 |
fn=analyze_selected_video,
|
| 18 |
-
inputs=gr.Dropdown(choices=
|
| 19 |
outputs=gr.Gallery(label="Detected Road Defects"),
|
| 20 |
title="Drone-based Road Defect Detection",
|
| 21 |
description="Highlight road defects (cracks, potholes, misalignments) in red using video frames."
|
| 22 |
)
|
| 23 |
|
| 24 |
if __name__ == "__main__":
|
| 25 |
-
demo.launch()
|
|
|
|
| 15 |
|
| 16 |
demo = gr.Interface(
|
| 17 |
fn=analyze_selected_video,
|
| 18 |
+
inputs=gr.Dropdown(choices=get_video_choices(), label="Select Drone Video"),
|
| 19 |
outputs=gr.Gallery(label="Detected Road Defects"),
|
| 20 |
title="Drone-based Road Defect Detection",
|
| 21 |
description="Highlight road defects (cracks, potholes, misalignments) in red using video frames."
|
| 22 |
)
|
| 23 |
|
| 24 |
if __name__ == "__main__":
|
| 25 |
+
demo.launch()
|