Bhuvi13 commited on
Commit
37630bf
·
verified ·
1 Parent(s): d86231e

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +4 -4
src/streamlit_app.py CHANGED
@@ -850,10 +850,10 @@ If no line total column exists on the invoice → line_total = ""."""
850
  st.info("Resized for API:\n" + "\n".join(resize_info))
851
 
852
  total_payload_mb = total_b64_bytes / (1024 * 1024)
853
- #if total_payload_mb > 10:
854
- #st.warning(f"Large payload ({total_payload_mb:.2f} MB across {len(images)} page(s)). May be slow.")
855
- #else:
856
- #st.info(f"Sending {len(images)} page(s) in one request (≈ {total_payload_mb:.2f} MB).")
857
 
858
  user_content = image_content_blocks + [
859
  {
 
850
  st.info("Resized for API:\n" + "\n".join(resize_info))
851
 
852
  total_payload_mb = total_b64_bytes / (1024 * 1024)
853
+ if total_payload_mb > 10:
854
+ st.warning(f"Large payload ({total_payload_mb:.2f} MB across {len(images)} page(s)). May be slow.")
855
+ else:
856
+ st.info(f"Sending {len(images)} page(s) in one request (≈ {total_payload_mb:.2f} MB).")
857
 
858
  user_content = image_content_blocks + [
859
  {