Spaces:
Runtime error
Runtime error
Update app.py
#1
by
Priyanka-Kumavat-At-TE
- opened
app.py
CHANGED
@@ -58,7 +58,7 @@ def detect_object(IMAGE_PATH):
|
|
58 |
st.image(fig1)
|
59 |
#img_array = img_to_array(img)
|
60 |
def show_image(image, boxes, labels=None):
|
61 |
-
"""
|
62 |
Also displays each box's label if a list of labels is provided.
|
63 |
:param image: The image to plot. If the image is a normalized
|
64 |
torch.Tensor object, it will automatically be reverse-normalized
|
|
|
58 |
st.image(fig1)
|
59 |
#img_array = img_to_array(img)
|
60 |
def show_image(image, boxes, labels=None):
|
61 |
+
"""Shows the image along with the specified boxes around detected objects.
|
62 |
Also displays each box's label if a list of labels is provided.
|
63 |
:param image: The image to plot. If the image is a normalized
|
64 |
torch.Tensor object, it will automatically be reverse-normalized
|