Upload app.py
Browse files
app.py
CHANGED
|
@@ -242,7 +242,7 @@ def main():
|
|
| 242 |
|
| 243 |
with col1:
|
| 244 |
st.markdown("#### Original Image")
|
| 245 |
-
st.image(image_rgb,
|
| 246 |
|
| 247 |
# Run detection
|
| 248 |
with st.spinner("🔍 Detecting garbage..."):
|
|
@@ -255,7 +255,7 @@ def main():
|
|
| 255 |
with col2:
|
| 256 |
st.markdown("#### Detection Results")
|
| 257 |
annotated_rgb = cv2.cvtColor(result["image"], cv2.COLOR_BGR2RGB)
|
| 258 |
-
st.image(annotated_rgb,
|
| 259 |
|
| 260 |
# Display statistics
|
| 261 |
st.markdown("---")
|
|
|
|
| 242 |
|
| 243 |
with col1:
|
| 244 |
st.markdown("#### Original Image")
|
| 245 |
+
st.image(image_rgb, use_column_width=True)
|
| 246 |
|
| 247 |
# Run detection
|
| 248 |
with st.spinner("🔍 Detecting garbage..."):
|
|
|
|
| 255 |
with col2:
|
| 256 |
st.markdown("#### Detection Results")
|
| 257 |
annotated_rgb = cv2.cvtColor(result["image"], cv2.COLOR_BGR2RGB)
|
| 258 |
+
st.image(annotated_rgb, use_column_width=True)
|
| 259 |
|
| 260 |
# Display statistics
|
| 261 |
st.markdown("---")
|