aneesqumar commited on
Commit
fc0126d
·
verified ·
1 Parent(s): 07dc94f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -18,13 +18,13 @@ def predict_and_generate(name, age, gender, platelets, hb, duration, calcium, po
18
 
19
  # 1️⃣ Prepare input DataFrame
20
  data = pd.DataFrame([{
21
- "Platelet Count": platelets,
22
- "Age": age,
23
- "Hemoglobin (g/dL)": hb,
24
- "Treatment Duration": duration,
25
- "Calcium (mg/dL)": calcium,
26
- "Potassium": potassium,
27
- "Gender": gender
28
  }])
29
 
30
  # 2️⃣ Pass data through preprocessor
 
18
 
19
  # 1️⃣ Prepare input DataFrame
20
  data = pd.DataFrame([{
21
+ "Platelet Count": platelets,
22
+ "Age": age,
23
+ "Hemoglobin (g/dL)": hb,
24
+ "Treatment Duration": duration,
25
+ "Calcium (mg/dL)": calcium,
26
+ "Potassium (mmol/L)": potassium,
27
+ "Gender": gender
28
  }])
29
 
30
  # 2️⃣ Pass data through preprocessor