Spaces:
Runtime error
Runtime error
Create app.py
Browse files
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()
|