Spaces:
Runtime error
Runtime error
Update prediction.py
Browse files- prediction.py +2 -2
prediction.py
CHANGED
@@ -30,7 +30,7 @@ def run():
|
|
30 |
binned_creat_serum = st.selectbox('High serum creatinine', (1, 2), index=1)
|
31 |
binned_cpk = st.selectbox('CPK Value', (1,2,3), index=1)
|
32 |
binned_ejection = st.selectbox(' Ejection fraction', (1,2,3), index=1)
|
33 |
-
binned_platelets = st.selectbox('Platelets count', (0, 1, 2), index=1)
|
34 |
st.markdown('---')
|
35 |
|
36 |
submitted = st.form_submit_button('Predict')
|
@@ -63,7 +63,7 @@ def run():
|
|
63 |
|
64 |
# Predict using gbc
|
65 |
y_pred_inf = gbc_model.predict(data_inf_df)
|
66 |
-
st.write('#
|
67 |
|
68 |
if __name__ == '__main__':
|
69 |
run()
|
|
|
30 |
binned_creat_serum = st.selectbox('High serum creatinine', (1, 2), index=1)
|
31 |
binned_cpk = st.selectbox('CPK Value', (1,2,3), index=1)
|
32 |
binned_ejection = st.selectbox(' Ejection fraction', (1,2,3), index=1)
|
33 |
+
binned_platelets = st.selectbox('Platelets count', (0, 1, 2), index=1, help='0 = low, \n 1 = normal, \n 2 = high ')
|
34 |
st.markdown('---')
|
35 |
|
36 |
submitted = st.form_submit_button('Predict')
|
|
|
63 |
|
64 |
# Predict using gbc
|
65 |
y_pred_inf = gbc_model.predict(data_inf_df)
|
66 |
+
st.write('# Death possibility: ', str(int(y_pred_inf)))
|
67 |
|
68 |
if __name__ == '__main__':
|
69 |
run()
|