dkdaniz commited on
Commit
b34b7d7
1 Parent(s): d8cdb63

Create main.py

Browse files
Files changed (1) hide show
  1. main.py +16 -0
main.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from fastapi import FastAPI
2
+ import pickle
3
+ import uvicorn
4
+ import pandas as pd
5
+
6
+ app = FastAPI()
7
+
8
+
9
+ @app.get("/")
10
+ def root():
11
+ return {"API": "An API for Sepsis Prediction."}
12
+
13
+
14
+ @app.get('/Predict')
15
+ async def predict():
16
+ return 'output_pred = "Sepsis status is Negative"'