Esvanth commited on
Commit
ff6f491
Β·
1 Parent(s): 1a2c8bc

Remove report download from site

Browse files
Files changed (1) hide show
  1. app.py +0 -29
app.py CHANGED
@@ -252,35 +252,6 @@ with st.sidebar:
252
  5. Read the *What does this tell us?* section
253
  """)
254
  st.divider()
255
-
256
- t2_done = st.session_state.get("t2_done", False)
257
- t3_done = st.session_state.get("t3_done", False)
258
- t5_done = st.session_state.get("t5_done", False)
259
-
260
- st.markdown("**Task status:**")
261
- st.markdown(f"{'βœ…' if t2_done else '⬜'} Task 2 β€” Bias & Segmentation")
262
- st.markdown(f"{'βœ…' if t3_done else '⬜'} Task 3 β€” Route Algorithms")
263
- st.markdown(f"{'βœ…' if t5_done else '⬜'} Task 5 β€” Demand Forecasting")
264
- st.divider()
265
-
266
- st.markdown("**Download Report**")
267
- if t2_done or t3_done or t5_done:
268
- report_buf = _build_report(
269
- st.session_state.get("t2_text",""),
270
- st.session_state.get("t3_text",""),
271
- st.session_state.get("t5_text",""),
272
- )
273
- st.download_button(
274
- label="⬇ Download .docx report",
275
- data=report_buf,
276
- file_name="EcoCart_Report.docx",
277
- mime="application/vnd.openxmlformats-officedocument.wordprocessingml.document",
278
- use_container_width=True,
279
- )
280
- st.caption("Report includes all outputs and charts from completed tasks.")
281
- else:
282
- st.caption("Run Tasks 2, 3 and 5 first β€” download button will appear here.")
283
- st.divider()
284
  st.caption("All outputs are from the actual task Python scripts.")
285
 
286
  # ── header ────────────────────────────────────────────────────────────────────
 
252
  5. Read the *What does this tell us?* section
253
  """)
254
  st.divider()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
255
  st.caption("All outputs are from the actual task Python scripts.")
256
 
257
  # ── header ────────────────────────────────────────────────────────────────────