Queensly commited on
Commit
d687e0e
1 Parent(s): 4e3d66d

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +6 -0
main.py CHANGED
@@ -23,6 +23,12 @@ ml_components = load_pickle('ml_sepsis.pkl')
23
  ml_model = ml_components['model']
24
  pipeline_processing = ml_components['pipeline']
25
 
 
 
 
 
 
 
26
  @app.get('/Predict_Sepsis')
27
  async def predict(Plasma_glucose: int, Blood_Work_Result_1: int,
28
  Blood_Pressure: int, Blood_Work_Result_2: int,
 
23
  ml_model = ml_components['model']
24
  pipeline_processing = ml_components['pipeline']
25
 
26
+ #Endpoints
27
+ #Root endpoints
28
+ @app.get("/")
29
+ def root():
30
+ return {"API": "An API for Sepsis Prediction."}
31
+
32
  @app.get('/Predict_Sepsis')
33
  async def predict(Plasma_glucose: int, Blood_Work_Result_1: int,
34
  Blood_Pressure: int, Blood_Work_Result_2: int,