Ubuntu
commited on
Commit
·
0250c84
1
Parent(s):
21181e0
changed images size, removed image caching
Browse files
app.py
CHANGED
@@ -16,5 +16,9 @@ def detect_hotspots(image):
|
|
16 |
|
17 |
demo = gr.Interface(fn=detect_hotspots, inputs=gr.Image(type='pil'), outputs="image", title="YOLO Object Detection",
|
18 |
examples=[['images/test_image_1.jpg'], ['images/test_image_2.jpg'],
|
19 |
-
['images/test_image_3.jpg'], ['images/test_image_4.jpg']]
|
|
|
|
|
|
|
|
|
20 |
demo.launch()
|
|
|
16 |
|
17 |
demo = gr.Interface(fn=detect_hotspots, inputs=gr.Image(type='pil'), outputs="image", title="YOLO Object Detection",
|
18 |
examples=[['images/test_image_1.jpg'], ['images/test_image_2.jpg'],
|
19 |
+
['images/test_image_3.jpg'], ['images/test_image_4.jpg']],
|
20 |
+
examples_per_page=4,
|
21 |
+
image_size=(256, 256),
|
22 |
+
cache_examples= False
|
23 |
+
)
|
24 |
demo.launch()
|