Spaces:
Runtime error
Runtime error
Update prediction.py
Browse files- 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':
|
47 |
-
'anaemia':
|
48 |
-
'creatinine_phosphokinase':
|
49 |
-
'diabetes':
|
50 |
-
'ejection_fraction':
|
51 |
-
'high_blood_pressure':
|
52 |
-
'platelets':
|
53 |
-
'serum_creatinine':
|
54 |
-
'serum_sodium':
|
55 |
-
'sex':
|
56 |
-
'smoking':
|
57 |
-
'time':
|
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])
|