Ubuntu
commited on
Commit
·
6365d38
1
Parent(s):
15e1370
added description
Browse files
app.py
CHANGED
@@ -14,18 +14,17 @@ def detect_hotspots(image):
|
|
14 |
return Image.fromarray(im_array[..., ::-1])
|
15 |
|
16 |
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
height: auto !important;
|
21 |
-
}
|
22 |
"""
|
23 |
|
|
|
24 |
demo = gr.Interface(fn=detect_hotspots, inputs=gr.Image(type='pil'), outputs="image", title="YOLO Object Detection",
|
25 |
examples=[['images/test_image_1.jpg'], ['images/test_image_2.jpg'],
|
26 |
['images/test_image_3.jpg'], ['images/test_image_4.jpg']],
|
27 |
examples_per_page=4,
|
28 |
cache_examples= False,
|
29 |
-
|
30 |
)
|
31 |
demo.launch()
|
|
|
14 |
return Image.fromarray(im_array[..., ::-1])
|
15 |
|
16 |
|
17 |
+
|
18 |
+
description = """
|
19 |
+
<center><img src="https://huggingface.co/spaces/intelliarts/hotspot-anomaly-detection-for-solar-panels/resolve/main/images/ia_logo.png" width=270px> </center><br>
|
|
|
|
|
20 |
"""
|
21 |
|
22 |
+
|
23 |
demo = gr.Interface(fn=detect_hotspots, inputs=gr.Image(type='pil'), outputs="image", title="YOLO Object Detection",
|
24 |
examples=[['images/test_image_1.jpg'], ['images/test_image_2.jpg'],
|
25 |
['images/test_image_3.jpg'], ['images/test_image_4.jpg']],
|
26 |
examples_per_page=4,
|
27 |
cache_examples= False,
|
28 |
+
description=description
|
29 |
)
|
30 |
demo.launch()
|