Commit
·
7f3c9bc
1
Parent(s):
88041fe
Update main.py
Browse files
main.py
CHANGED
@@ -34,6 +34,17 @@ model_input = joblib.load("model_1.joblib")
|
|
34 |
|
35 |
@app.post("/sepsis_prediction")
|
36 |
async def predict(input: InputFeatures):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
# Numeric Features
|
38 |
num_attr = [
|
39 |
['Plasma_glucose', 'Blood_Work_Result_1', 'Blood_Pressure',
|
|
|
34 |
|
35 |
@app.post("/sepsis_prediction")
|
36 |
async def predict(input: InputFeatures):
|
37 |
+
|
38 |
+
{ Plasma_glucose: float
|
39 |
+
Blood_Work_Result_1: float
|
40 |
+
Blood_Pressure: float
|
41 |
+
Blood_Work_Result_2: float
|
42 |
+
Blood_Work_Result_3: float
|
43 |
+
Body_mass_index: float
|
44 |
+
Blood_Work_Result_4: float
|
45 |
+
patients_age: int
|
46 |
+
}
|
47 |
+
|
48 |
# Numeric Features
|
49 |
num_attr = [
|
50 |
['Plasma_glucose', 'Blood_Work_Result_1', 'Blood_Pressure',
|