Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.")
|