Spaces:
Build error
Build error
jonathanagustin
commited on
Commit
•
fe51a0f
1
Parent(s):
b394efd
Update app.py
Browse files
app.py
CHANGED
@@ -31,18 +31,18 @@ def predict(
|
|
31 |
"num_procedures": num_procedures,
|
32 |
"num_medications": num_medications,
|
33 |
"number_diagnoses": number_diagnoses,
|
34 |
-
"metformin": metformin,
|
35 |
-
"repaglinide": repaglinide,
|
36 |
-
"nateglinide": nateglinide,
|
37 |
-
"chlorpropamide": chlorpropamide,
|
38 |
-
"glimepiride": glimepiride,
|
39 |
-
"glipizide": glipizide,
|
40 |
-
"glyburide": glyburide,
|
41 |
-
"pioglitazone": pioglitazone,
|
42 |
-
"rosiglitazone": rosiglitazone,
|
43 |
-
"acarbose": acarbose,
|
44 |
-
"insulin": insulin,
|
45 |
-
"readmitted": readmitted
|
46 |
}
|
47 |
|
48 |
try:
|
|
|
31 |
"num_procedures": num_procedures,
|
32 |
"num_medications": num_medications,
|
33 |
"number_diagnoses": number_diagnoses,
|
34 |
+
"metformin": int(metformin),
|
35 |
+
"repaglinide": int(repaglinide),
|
36 |
+
"nateglinide": int(nateglinide),
|
37 |
+
"chlorpropamide": int(chlorpropamide),
|
38 |
+
"glimepiride": int(glimepiride),
|
39 |
+
"glipizide": int(glipizide),
|
40 |
+
"glyburide": int(glyburide),
|
41 |
+
"pioglitazone": int(pioglitazone),
|
42 |
+
"rosiglitazone": int(rosiglitazone),
|
43 |
+
"acarbose": int(acarbose),
|
44 |
+
"insulin": int(insulin),
|
45 |
+
"readmitted": readmitted # Ensure this is correctly mapped
|
46 |
}
|
47 |
|
48 |
try:
|