gaspar-avit commited on
Commit
5ee4e8b
1 Parent(s): 90f031d

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -201,12 +201,12 @@ def generate_prediction(input_data):
201
  # prediction = MODEL.predict(input_data)
202
  proba = MODEL.predict_proba(input_data)
203
  positive_proba = round(proba[0,1]*100)
204
-
 
205
  st.markdown(f"<h1 style='text-align: center; color: grey;'>\
206
- {positive_proba}</h1>",
207
  unsafe_allow_html=True)
208
- st.progress(positive_proba,
209
- text='predicted cardiovascular disease probability.')
210
 
211
  return proba
212
 
 
201
  # prediction = MODEL.predict(input_data)
202
  proba = MODEL.predict_proba(input_data)
203
  positive_proba = round(proba[0,1]*100)
204
+
205
+ st.title('Predicted cardiovascular disease probability:')
206
  st.markdown(f"<h1 style='text-align: center; color: grey;'>\
207
+ {positive_proba} %</h1>",
208
  unsafe_allow_html=True)
209
+ st.progress(positive_proba)
 
210
 
211
  return proba
212