Queensly commited on
Commit
35a2edb
1 Parent(s): d687e0e

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -3
main.py CHANGED
@@ -33,7 +33,7 @@ def root():
33
  async def predict(Plasma_glucose: int, Blood_Work_Result_1: int,
34
  Blood_Pressure: int, Blood_Work_Result_2: int,
35
  Blood_Work_Result_3: int, Body_mass_index: float,
36
- Blood_Work_Result_4: float,Age: int, Insurance:float):
37
 
38
  data = pd.DataFrame({'Plasma glucose': [Plasma_glucose], 'Blood Work Result-1': [Blood_Work_Result_1],
39
  'Blood Pressure': [Blood_Pressure], 'Blood Work Result-2': [Blood_Work_Result_2],
@@ -47,8 +47,8 @@ async def predict(Plasma_glucose: int, Blood_Work_Result_1: int,
47
  prediction = make_prediction(model_output)
48
 
49
  return prediction
50
-
51
-
52
 
53
 
54
  def make_prediction(data_prepared):
@@ -60,4 +60,5 @@ def make_prediction(data_prepared):
60
  else:
61
  output_pred = "Sepsis status is Positive"
62
 
 
63
  return output_pred
 
33
  async def predict(Plasma_glucose: int, Blood_Work_Result_1: int,
34
  Blood_Pressure: int, Blood_Work_Result_2: int,
35
  Blood_Work_Result_3: int, Body_mass_index: float,
36
+ Blood_Work_Result_4: float, Age: int, Insurance: float):
37
 
38
  data = pd.DataFrame({'Plasma glucose': [Plasma_glucose], 'Blood Work Result-1': [Blood_Work_Result_1],
39
  'Blood Pressure': [Blood_Pressure], 'Blood Work Result-2': [Blood_Work_Result_2],
 
47
  prediction = make_prediction(model_output)
48
 
49
  return prediction
50
+
51
+
52
 
53
 
54
  def make_prediction(data_prepared):
 
60
  else:
61
  output_pred = "Sepsis status is Positive"
62
 
63
+
64
  return output_pred