m7mdal7aj commited on
Commit
ca63915
1 Parent(s): e51b9a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -104,7 +104,7 @@ def perform_object_detection(image, model_name, threshold):
104
  try:
105
  # Perform object detection and draw bounding boxes
106
  processed_image, detected_objects = detector.detect_and_draw_objects(image, model_name, threshold)
107
- st.write("66666666666666")
108
  return processed_image, detected_objects
109
  except Exception as e:
110
  # Print the error for debugging
@@ -125,7 +125,7 @@ if detect_button:
125
  # Perform object detection
126
  processed_image, detected_objects = perform_object_detection(image, detect_model, threshold)
127
  st.write("333333333333333")
128
- st.write(tyep(processed_image))
129
  #if processed_image:
130
  # Display the image with detected objects
131
  st.image(processed_image, use_column_width=True, caption="Image with Detected Objects")
 
104
  try:
105
  # Perform object detection and draw bounding boxes
106
  processed_image, detected_objects = detector.detect_and_draw_objects(image, model_name, threshold)
107
+ st.write("66666666666666")
108
  return processed_image, detected_objects
109
  except Exception as e:
110
  # Print the error for debugging
 
125
  # Perform object detection
126
  processed_image, detected_objects = perform_object_detection(image, detect_model, threshold)
127
  st.write("333333333333333")
128
+ st.write(type(processed_image))
129
  #if processed_image:
130
  # Display the image with detected objects
131
  st.image(processed_image, use_column_width=True, caption="Image with Detected Objects")