saritha5 commited on
Commit
fe9a72f
1 Parent(s): a1d5958

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -54,6 +54,7 @@ def detect_object(IMAGE_PATH):
54
  show_labeled_image(image, filtered_boxes, filtered_labels)
55
 
56
  fig1 = show_image(image,filtered_boxes,filtered_labels)
 
57
  st.image(fig1)
58
  #img_array = img_to_array(img)
59
  def show_image(image, boxes, labels=None):
@@ -117,6 +118,7 @@ if file is None:
117
  st.write("Please upload an image file")
118
  else:
119
  image= Image.open(file)
 
120
  st.image(image,use_column_width = True)
121
  with NamedTemporaryFile(dir='.', suffix='.jpeg') as f:
122
  f.write(file.getbuffer())
 
54
  show_labeled_image(image, filtered_boxes, filtered_labels)
55
 
56
  fig1 = show_image(image,filtered_boxes,filtered_labels)
57
+ st.write("Object Detected Image is")
58
  st.image(fig1)
59
  #img_array = img_to_array(img)
60
  def show_image(image, boxes, labels=None):
 
118
  st.write("Please upload an image file")
119
  else:
120
  image= Image.open(file)
121
+ st.write("Input Image")
122
  st.image(image,use_column_width = True)
123
  with NamedTemporaryFile(dir='.', suffix='.jpeg') as f:
124
  f.write(file.getbuffer())