Update app.py
Browse files
app.py
CHANGED
@@ -69,16 +69,16 @@ def make_predictions(input_data_scaled_df):
|
|
69 |
|
70 |
# Input Data Fields in two columns
|
71 |
with col1:
|
72 |
-
input_data["PRG"] = st.number_input("Number of Pregnancies", value=0.0)
|
73 |
-
input_data["PL"] = st.number_input("Plasma Glucose Concentration (mg/dL)", value=0.0)
|
74 |
-
input_data["PR"] = st.number_input("Diastolic Blood Pressure (mm Hg)", value=0.0)
|
75 |
-
input_data["SK"] = st.number_input("Triceps Skinfold Thickness (mm)", value=0.0)
|
76 |
|
77 |
with col2:
|
78 |
-
input_data["TS"] = st.number_input("2-Hour Serum Insulin (mu U/ml)", value=0.0)
|
79 |
-
input_data["M11"] = st.number_input("Body Mass Index (BMI)", value=0.0)
|
80 |
-
input_data["BD2"] = st.number_input("Diabetes Pedigree Function (mu U/ml)", value=0.0)
|
81 |
-
input_data["Age"] = st.slider("Age of the patient (years)", 0, 100, 0)
|
82 |
|
83 |
# Predict Button with Style
|
84 |
if st.button("🔮 Predict Sepsis"):
|
|
|
69 |
|
70 |
# Input Data Fields in two columns
|
71 |
with col1:
|
72 |
+
input_data["PRG"] = st.number_input("PRG: Number of Pregnancies", value=0.0)
|
73 |
+
input_data["PL"] = st.number_input("PL: Plasma Glucose Concentration (mg/dL)", value=0.0)
|
74 |
+
input_data["PR"] = st.number_input("PR: Diastolic Blood Pressure (mm Hg)", value=0.0)
|
75 |
+
input_data["SK"] = st.number_input("SK: Triceps Skinfold Thickness (mm)", value=0.0)
|
76 |
|
77 |
with col2:
|
78 |
+
input_data["TS"] = st.number_input("TS: 2-Hour Serum Insulin (mu U/ml)", value=0.0)
|
79 |
+
input_data["M11"] = st.number_input("M11: Body Mass Index (BMI)", value=0.0)
|
80 |
+
input_data["BD2"] = st.number_input("BD2: Diabetes Pedigree Function (mu U/ml)", value=0.0)
|
81 |
+
input_data["Age"] = st.slider("Age: Age of the patient (years)", 0, 100, 0)
|
82 |
|
83 |
# Predict Button with Style
|
84 |
if st.button("🔮 Predict Sepsis"):
|