Sonny4Sonnix commited on
Commit
ab66923
·
1 Parent(s): 511a161

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -34,10 +34,10 @@ async def read_root():
34
  async def show_form():
35
 
36
  @app.post("/predict/")
37
- async def predict_sepsis(
38
  request: Request,
39
  input_data: InputFeatures # Use the Pydantic model for input validation
40
- ):
41
  try:
42
  # Convert Pydantic model to a DataFrame for prediction
43
  input_df = pd.DataFrame([input_data.dict()])
 
34
  async def show_form():
35
 
36
  @app.post("/predict/")
37
+ async def predict_sepsis():
38
  request: Request,
39
  input_data: InputFeatures # Use the Pydantic model for input validation
40
+
41
  try:
42
  # Convert Pydantic model to a DataFrame for prediction
43
  input_df = pd.DataFrame([input_data.dict()])