rasmodev commited on
Commit
6cfb1d2
·
1 Parent(s): 1caf795

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -148,8 +148,9 @@ if st.button("🔮 Predict Sepsis"):
148
  file_path = f"/app/{patient_name}_sepsis_prediction.csv"
149
  input_df.to_csv(file_path, index=False, encoding='utf-8-sig')
150
 
151
- # Provide a download link
152
- st.markdown(f"### [Download {patient_name}'s Prediction CSV](sandbox:/app/{patient_name}_sepsis_prediction.csv)")
 
153
 
154
  else:
155
  st.warning("Please enter the patient's name.")
 
148
  file_path = f"/app/{patient_name}_sepsis_prediction.csv"
149
  input_df.to_csv(file_path, index=False, encoding='utf-8-sig')
150
 
151
+ # Provide a download button
152
+ with open(file_path, "rb") as file:
153
+ st.download_button(label=f"Download {patient_name}'s Prediction CSV", data=file, key="download_button")
154
 
155
  else:
156
  st.warning("Please enter the patient's name.")