Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ colors = ["red",
|
|
| 20 |
]
|
| 21 |
|
| 22 |
# Resized image width
|
| 23 |
-
WIDTH =
|
| 24 |
|
| 25 |
def detect(image):
|
| 26 |
width, height = image.size
|
|
@@ -76,6 +76,7 @@ demo = gr.Interface(
|
|
| 76 |
inputs=[gr.inputs.Image(label="Input image", type="pil")],
|
| 77 |
outputs=[gr.Image(label="Output image"), gr.BarPlot(show_label=False, x="label", y="counts", x_title="Labels", y_title="Counts", vertical=False), gr.Textbox(show_label=False)],
|
| 78 |
title="YOLO Object Detection",
|
|
|
|
| 79 |
)
|
| 80 |
|
| 81 |
demo.launch()
|
|
|
|
| 20 |
]
|
| 21 |
|
| 22 |
# Resized image width
|
| 23 |
+
WIDTH = 540
|
| 24 |
|
| 25 |
def detect(image):
|
| 26 |
width, height = image.size
|
|
|
|
| 76 |
inputs=[gr.inputs.Image(label="Input image", type="pil")],
|
| 77 |
outputs=[gr.Image(label="Output image"), gr.BarPlot(show_label=False, x="label", y="counts", x_title="Labels", y_title="Counts", vertical=False), gr.Textbox(show_label=False)],
|
| 78 |
title="YOLO Object Detection",
|
| 79 |
+
cache_examples=False
|
| 80 |
)
|
| 81 |
|
| 82 |
demo.launch()
|