Spaces:
Sleeping
Sleeping
| demo = gr.Interface( | |
| fn=analyze_video, | |
| inputs=gr.Video(label="Upload Drone Video"), | |
| outputs=[ | |
| gr.Video(label="Annotated Video"), | |
| gr.Gallery(label="Fault Screenshots").style(grid=3) | |
| ], | |
| title="Solar Panel Fault Detection with Screenshots", | |
| description="Uploads a drone video, detects faults, and captures screenshots only when a fault is detected." | |
| ) | |
| if __name__ == "__main__": | |
| demo.launch() | |