File size: 401 Bytes
1da3108
22e4b35
817fe63
22e4b35
 
 
 
 
817fe63
 
22e4b35
1
2
3
4
5
6
7
8
9
10
11
12
import gradio as gr
from inference import predict

iface = gr.Interface(fn=predict, 
                     inputs=gr.Image(type="pil"), 
                     outputs="image",
                     title="Solar Panel Fault Detection",
                     description="Upload a thermal image of a solar panel to detect faults using YOLOv5/Roboflow model.")

if __name__ == "__main__":
    iface.launch()