Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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", "
|
|
|
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"]
|