Recompense commited on
Commit
d0122da
·
verified ·
1 Parent(s): 95c9d89

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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", use_container_width='auto')
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", use_container_width='auto')
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", width=200)
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", width=200)
587
 
588
  result_class = st.session_state.prediction_result
589
  probability = st.session_state.predicted_prob