Update app.py
Browse files
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
|
152 |
-
|
|
|
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.")
|