rasmodev commited on
Commit
04e3d04
·
verified ·
1 Parent(s): 6bf2917

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -56,7 +56,6 @@ async def root():
56
  message = "Welcome to the Sepsis Classification API! This API Provides predictions for Sepsis based on several medical inputs. To use this API, please access the API documentation here: https://rasmodev-sepsis-prediction.hf.space/docs/"
57
  return message
58
 
59
-
60
  @app.post("/predict/", response_model=OutputData)
61
  async def predict_sepsis(input_data: InputData):
62
  try:
@@ -67,7 +66,7 @@ async def predict_sepsis(input_data: InputData):
67
 
68
  # Handle exceptions and return an error response
69
  raise HTTPException(status_code=500, detail=str(e))
70
-
71
  if __name__ == "__main__":
72
  import uvicorn
73
  # Run the FastAPI application on the local host and port 7860
 
56
  message = "Welcome to the Sepsis Classification API! This API Provides predictions for Sepsis based on several medical inputs. To use this API, please access the API documentation here: https://rasmodev-sepsis-prediction.hf.space/docs/"
57
  return message
58
 
 
59
  @app.post("/predict/", response_model=OutputData)
60
  async def predict_sepsis(input_data: InputData):
61
  try:
 
66
 
67
  # Handle exceptions and return an error response
68
  raise HTTPException(status_code=500, detail=str(e))
69
+
70
  if __name__ == "__main__":
71
  import uvicorn
72
  # Run the FastAPI application on the local host and port 7860