rasmodev commited on
Commit
bfc50b8
1 Parent(s): 6b9d1af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -53,7 +53,7 @@ def make_predictions(input_data_scaled_df: pd.DataFrame):
53
  @app.get("/")
54
  async def root():
55
  # Endpoint at the root URL ("/") returns a welcome message with a clickable link
56
- message = "Welcome to your Sepsis Classification API! Click [here](/docs) to access the API documentation."
57
  return {"message": message}
58
 
59
 
@@ -71,4 +71,4 @@ async def predict_sepsis(input_data: InputData):
71
  if __name__ == "__main__":
72
  import uvicorn
73
  # Run the FastAPI application on the local host and port 8000
74
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
 
53
  @app.get("/")
54
  async def root():
55
  # Endpoint at the root URL ("/") returns a welcome message with a clickable link
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": message}
58
 
59
 
 
71
  if __name__ == "__main__":
72
  import uvicorn
73
  # Run the FastAPI application on the local host and port 8000
74
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--reload"]