Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,8 @@ def detect_object(IMAGE_PATH):
|
|
42 |
filtered_boxes=boxes[filtered_indices]
|
43 |
num_list = filtered_indices[0].tolist()
|
44 |
filtered_labels = [labels[i] for i in num_list]
|
45 |
-
|
|
|
46 |
#img_array = img_to_array(img)
|
47 |
|
48 |
file = st.file_uploader('Upload an Image',type=(["jpeg","jpg","png"]))
|
|
|
42 |
filtered_boxes=boxes[filtered_indices]
|
43 |
num_list = filtered_indices[0].tolist()
|
44 |
filtered_labels = [labels[i] for i in num_list]
|
45 |
+
show_labeled_image(image, filtered_boxes, filtered_labels)
|
46 |
+
st.image(image,filtered_boxes,filtered_labels)
|
47 |
#img_array = img_to_array(img)
|
48 |
|
49 |
file = st.file_uploader('Upload an Image',type=(["jpeg","jpg","png"]))
|