saritha5 commited on
Commit
c540fbf
1 Parent(s): dcd7a74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- st.show_labeled_image(image, filtered_boxes, filtered_labels)
 
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"]))