Abubakari commited on
Commit
6bf7053
1 Parent(s): 02b4f6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -97,8 +97,11 @@ def main():
97
  output_df, probabilities, status_icon, sepsis_explanation = predict_sepsis(input_data)
98
 
99
  st.subheader('Prediction Result')
 
 
100
  st.markdown(f"{status_icon} {sepsis_explanation}")
101
  st.write(output_df)
 
102
 
103
  # Plot the probabilities
104
  fig, ax = plt.subplots()
@@ -136,8 +139,8 @@ def main():
136
  else:
137
  st.write('Feature importance is not available for this model.')
138
 
139
- st.subheader('Sepsis Explanation')
140
- st.markdown(f"{status_icon} {sepsis_explanation}")
141
 
142
 
143
  if __name__ == '__main__':
 
97
  output_df, probabilities, status_icon, sepsis_explanation = predict_sepsis(input_data)
98
 
99
  st.subheader('Prediction Result')
100
+ prediction_text = "Positive" if status_icon == "✔" else "Negative"
101
+ st.markdown(f"Prediction: **{prediction_text}**")
102
  st.markdown(f"{status_icon} {sepsis_explanation}")
103
  st.write(output_df)
104
+
105
 
106
  # Plot the probabilities
107
  fig, ax = plt.subplots()
 
139
  else:
140
  st.write('Feature importance is not available for this model.')
141
 
142
+ #st.subheader('Sepsis Explanation')
143
+ #st.markdown(f"{status_icon} {sepsis_explanation}")
144
 
145
 
146
  if __name__ == '__main__':