Spaces:
Sleeping
Sleeping
Sebastian Nausester
commited on
Commit
·
fc251a8
1
Parent(s):
f2f4d3a
app.py updated
Browse files
app.py
CHANGED
|
@@ -13,9 +13,10 @@ def predict(gender, bmi, asthma, glucose, pulse):
|
|
| 13 |
if asthma is True:
|
| 14 |
asthma_val = 1
|
| 15 |
|
|
|
|
| 16 |
pred_data = {
|
| 17 |
"id": 0,
|
| 18 |
-
"rcount":
|
| 19 |
"gender": gender_char,
|
| 20 |
"dialysisrenalendstage": False,
|
| 21 |
"asthma": asthma_val,
|
|
@@ -30,13 +31,13 @@ def predict(gender, bmi, asthma, glucose, pulse):
|
|
| 30 |
"hemo": False,
|
| 31 |
"hematocrit": False,
|
| 32 |
"neutrophils": False,
|
| 33 |
-
"sodium":
|
| 34 |
"glucose": glucose,
|
| 35 |
-
"bloodureanitro":
|
| 36 |
-
"creatinine":
|
| 37 |
"bmi": bmi,
|
| 38 |
"pulse": pulse,
|
| 39 |
-
"respiration":
|
| 40 |
"secondarydiagnosisnonicd9": 0,
|
| 41 |
"facid": 0
|
| 42 |
}
|
|
|
|
| 13 |
if asthma is True:
|
| 14 |
asthma_val = 1
|
| 15 |
|
| 16 |
+
# Hardcoded Values are the mean of the training_data.csv
|
| 17 |
pred_data = {
|
| 18 |
"id": 0,
|
| 19 |
+
"rcount": 1.1178,
|
| 20 |
"gender": gender_char,
|
| 21 |
"dialysisrenalendstage": False,
|
| 22 |
"asthma": asthma_val,
|
|
|
|
| 31 |
"hemo": False,
|
| 32 |
"hematocrit": False,
|
| 33 |
"neutrophils": False,
|
| 34 |
+
"sodium": 137.89369109187714,
|
| 35 |
"glucose": glucose,
|
| 36 |
+
"bloodureanitro": 14.101120748294186,
|
| 37 |
+
"creatinine": 1.0994443932147715,
|
| 38 |
"bmi": bmi,
|
| 39 |
"pulse": pulse,
|
| 40 |
+
"respiration": 6.491511666666584,
|
| 41 |
"secondarydiagnosisnonicd9": 0,
|
| 42 |
"facid": 0
|
| 43 |
}
|