m7mdal7aj commited on
Commit
c55a1ed
1 Parent(s): 967768a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -112,9 +112,10 @@ if detect_button:
112
  st.image(image, use_column_width=True, caption="Original Image")
113
  # Perform object detection
114
  processed_image, detected_objects = perform_object_detection(image, detect_model, threshold)
115
- # Display the image with detected objects
116
- st.image(processed_image, use_column_width=True, caption="Image with Detected Objects")
117
  # Display the detected objects
118
  st.write(detected_objects)
 
 
 
119
  else:
120
  st.write("Please upload an image for object detection.")
 
112
  st.image(image, use_column_width=True, caption="Original Image")
113
  # Perform object detection
114
  processed_image, detected_objects = perform_object_detection(image, detect_model, threshold)
 
 
115
  # Display the detected objects
116
  st.write(detected_objects)
117
+ # Display the image with detected objects
118
+ st.image(processed_image, use_column_width=True, caption="Image with Detected Objects")
119
+
120
  else:
121
  st.write("Please upload an image for object detection.")