Spaces:
Runtime error
Runtime error
Commit
•
df64bf1
1
Parent(s):
07b7087
minor UI changes
Browse files
app.py
CHANGED
@@ -401,8 +401,8 @@ with tab2:
|
|
401 |
print("Image successfully uploaded!")
|
402 |
# Read the uploaded image file
|
403 |
#st.image(uploaded_file, caption='Uploaded Image', use_column_width=True,width=100)
|
404 |
-
with st.columns(3)[
|
405 |
-
st.image(uploaded_file, caption='Image uploaded
|
406 |
image = Image.open(uploaded_file)
|
407 |
|
408 |
image_for_drawing = image.copy()
|
@@ -426,8 +426,8 @@ with tab2:
|
|
426 |
# Class Detections displays
|
427 |
image_with_boxes = draw_boxes(image_for_drawing, result["detection_boxes"],detection_class_entities, detection_scores)
|
428 |
#display_image(image_with_boxes)
|
429 |
-
with st.columns(3)[
|
430 |
-
|
431 |
|
432 |
top_3_idx = np.argsort(-detection_scores)[:3]
|
433 |
plant_detection_count = 0
|
|
|
401 |
print("Image successfully uploaded!")
|
402 |
# Read the uploaded image file
|
403 |
#st.image(uploaded_file, caption='Uploaded Image', use_column_width=True,width=100)
|
404 |
+
with st.columns(3)[0]:
|
405 |
+
st.image(uploaded_file, caption='Image uploaded! Trying to detect objects in it...', width=300)
|
406 |
image = Image.open(uploaded_file)
|
407 |
|
408 |
image_for_drawing = image.copy()
|
|
|
426 |
# Class Detections displays
|
427 |
image_with_boxes = draw_boxes(image_for_drawing, result["detection_boxes"],detection_class_entities, detection_scores)
|
428 |
#display_image(image_with_boxes)
|
429 |
+
#with st.columns(3)[0]:
|
430 |
+
st.image(image_with_boxes, caption='Detected objects boxed', width=500)
|
431 |
|
432 |
top_3_idx = np.argsort(-detection_scores)[:3]
|
433 |
plant_detection_count = 0
|