hilalrd commited on
Commit
66f7821
1 Parent(s): c4c99da

Update prediction.py

Browse files
Files changed (1) hide show
  1. prediction.py +12 -12
prediction.py CHANGED
@@ -43,18 +43,18 @@ def run():
43
  submitted = st.form_submit_button('Prediction')
44
 
45
  data_inf = {
46
- 'age': 42.0,
47
- 'anaemia': 1,
48
- 'creatinine_phosphokinase': 582,
49
- 'diabetes': 0,
50
- 'ejection_fraction': 25,
51
- 'high_blood_pressure': 1,
52
- 'platelets': 302000.0,
53
- 'serum_creatinine': 0.9,
54
- 'serum_sodium': 145,
55
- 'sex': 1,
56
- 'smoking': 1,
57
- 'time': 215
58
  }
59
 
60
  data_inf = pd.DataFrame([data_inf])
 
43
  submitted = st.form_submit_button('Prediction')
44
 
45
  data_inf = {
46
+ 'age': Age,
47
+ 'anaemia': Anaemia,
48
+ 'creatinine_phosphokinase': Creatinine,
49
+ 'diabetes': Diabetes,
50
+ 'ejection_fraction': Ejection,
51
+ 'high_blood_pressure': BloodPleasure,
52
+ 'platelets': Platelets,
53
+ 'serum_creatinine': SerumCreatinine,
54
+ 'serum_sodium': Serum_Sodium,
55
+ 'sex': Gender,
56
+ 'smoking': Smoking,
57
+ 'time': Time
58
  }
59
 
60
  data_inf = pd.DataFrame([data_inf])