Aurélie GABU commited on
Commit
5685164
·
1 Parent(s): 2a3fff7

Ajout endpoint pour HF

Browse files
Files changed (1) hide show
  1. App/main.py +4 -0
App/main.py CHANGED
@@ -8,6 +8,10 @@ app = FastAPI(
8
  version="0.1.0"
9
  )
10
 
 
 
 
 
11
  @app.post("/predict")
12
  def predict(data: EmployeeFeatures):
13
  """
 
8
  version="0.1.0"
9
  )
10
 
11
+ @app.get("/")
12
+ def root():
13
+ return {"status": "API OK"}
14
+
15
  @app.post("/predict")
16
  def predict(data: EmployeeFeatures):
17
  """