rasmodev commited on
Commit
aa5f48f
·
verified ·
1 Parent(s): d0fd4bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -124,10 +124,12 @@ if st.button("🔮 Predict Sepsis"):
124
  input_data_scaled_df = preprocess_input_data(input_data)
125
  sepsis_status = make_predictions(input_data_scaled_df)
126
 
127
- # Display the sepsis prediction
128
  if sepsis_status == 'Negative':
 
129
  st.success(f"The predicted sepsis status is: {sepsis_status}")
130
  elif sepsis_status == 'Positive':
 
131
  st.error(f"The predicted sepsis status is: {sepsis_status}")
132
 
133
  # Add the sepsis prediction to the input DataFrame
 
124
  input_data_scaled_df = preprocess_input_data(input_data)
125
  sepsis_status = make_predictions(input_data_scaled_df)
126
 
127
+ # Display the sepsis prediction and risk
128
  if sepsis_status == 'Negative':
129
+ st.success("The patient is at low risk of developing sepsis.")
130
  st.success(f"The predicted sepsis status is: {sepsis_status}")
131
  elif sepsis_status == 'Positive':
132
+ st.error("The patient is at high risk of developing sepsis.")
133
  st.error(f"The predicted sepsis status is: {sepsis_status}")
134
 
135
  # Add the sepsis prediction to the input DataFrame