NaveenKumar5 commited on
Commit
4df2da8
·
verified ·
1 Parent(s): 78578d5

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from inference import predict
3
+
4
+ iface = gr.Interface(
5
+ fn=predict,
6
+ inputs=gr.Image(type="pil"),
7
+ outputs="image",
8
+ title="Solar Panel Fault Detection",
9
+ description="Upload a thermal image of a solar panel to detect faults using YOLOv5 trained via Roboflow."
10
+ )
11
+
12
+ if __name__ == "__main__":
13
+ iface.launch()