Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -503,7 +503,7 @@ with cols[0]:
|
|
503 |
# Display uploaded image preview
|
504 |
if uploaded_image:
|
505 |
image_bytes_for_state = uploaded_image.getvalue()
|
506 |
-
st.image(image_bytes_for_state, caption="Your image",
|
507 |
# Removed success message to save space
|
508 |
else:
|
509 |
st.info("Upload or take a picture.")
|
@@ -583,7 +583,7 @@ with cols[4]:
|
|
583 |
st.subheader("3. Prediction Result") # H3 targeted by CSS
|
584 |
|
585 |
if st.session_state.prediction_result and st.session_state.predicted_image_bytes:
|
586 |
-
st.image(st.session_state.predicted_image_bytes, caption="Image Analyzed",
|
587 |
|
588 |
result_class = st.session_state.prediction_result
|
589 |
probability = st.session_state.predicted_prob
|
|
|
503 |
# Display uploaded image preview
|
504 |
if uploaded_image:
|
505 |
image_bytes_for_state = uploaded_image.getvalue()
|
506 |
+
st.image(image_bytes_for_state, caption="Your image", use_container_width='auto')
|
507 |
# Removed success message to save space
|
508 |
else:
|
509 |
st.info("Upload or take a picture.")
|
|
|
583 |
st.subheader("3. Prediction Result") # H3 targeted by CSS
|
584 |
|
585 |
if st.session_state.prediction_result and st.session_state.predicted_image_bytes:
|
586 |
+
st.image(st.session_state.predicted_image_bytes, caption="Image Analyzed", use_container_width='auto')
|
587 |
|
588 |
result_class = st.session_state.prediction_result
|
589 |
probability = st.session_state.predicted_prob
|