Remove report download button from sidebar
Browse files
app.py
CHANGED
|
@@ -235,15 +235,6 @@ with st.sidebar:
|
|
| 235 |
st.markdown(f"<div style='color:{col};font-size:.82rem;margin:3px 0;'>{icon} {lbl}</div>",
|
| 236 |
unsafe_allow_html=True)
|
| 237 |
|
| 238 |
-
if t2_done or t3_done or t5_done:
|
| 239 |
-
st.divider()
|
| 240 |
-
buf = _build_report(st.session_state.get("t2_text",""),
|
| 241 |
-
st.session_state.get("t3_text",""),
|
| 242 |
-
st.session_state.get("t5_text",""))
|
| 243 |
-
st.download_button("⬇ Download Report (.docx)", buf,
|
| 244 |
-
file_name="EcoCart_Report.docx",
|
| 245 |
-
mime="application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
| 246 |
-
use_container_width=True)
|
| 247 |
st.divider()
|
| 248 |
st.caption("All outputs are from the real task Python scripts.")
|
| 249 |
|
|
|
|
| 235 |
st.markdown(f"<div style='color:{col};font-size:.82rem;margin:3px 0;'>{icon} {lbl}</div>",
|
| 236 |
unsafe_allow_html=True)
|
| 237 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 238 |
st.divider()
|
| 239 |
st.caption("All outputs are from the real task Python scripts.")
|
| 240 |
|