VJBharathkumar commited on
Commit
e74e049
·
verified ·
1 Parent(s): c143111

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +1 -24
src/streamlit_app.py CHANGED
@@ -236,30 +236,7 @@ if submit:
236
  f"'{r['prediction']}'."
237
  )
238
 
239
- # Downloads
240
- st.markdown("### Downloads")
241
-
242
- csv_bytes = df.to_csv(index=False).encode("utf-8")
243
- st.download_button(
244
- "Download CSV",
245
- data=csv_bytes,
246
- file_name="predictions.csv",
247
- mime="text/csv",
248
- use_container_width=True
249
- )
250
-
251
- df_ok = df[df["prediction"] != "Error"].copy()
252
- if len(df_ok) > 0:
253
- pdf_bytes = build_pdf_report(df_ok, threshold, MODEL_VERSION)
254
- st.download_button(
255
- "Download PDF Report",
256
- data=pdf_bytes,
257
- file_name="pneumonia_report.pdf",
258
- mime="application/pdf",
259
- use_container_width=True
260
- )
261
- else:
262
- st.info("PDF report is available only when at least one file is successfully processed.")
263
 
264
  st.divider()
265
  st.caption(
 
236
  f"'{r['prediction']}'."
237
  )
238
 
239
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
240
 
241
  st.divider()
242
  st.caption(