Update app.py
Browse files
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 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 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
|