mferdian commited on
Commit
10166b6
·
1 Parent(s): f508b3f

roor endpoint

Browse files
Files changed (1) hide show
  1. main.py +10 -0
main.py CHANGED
@@ -2,4 +2,14 @@ from fastapi import FastAPI
2
  from app.api import endpoint
3
 
4
  app = FastAPI(title="AES ML Service")
 
 
 
 
 
 
 
 
 
 
5
  app.include_router(endpoint.router)
 
2
  from app.api import endpoint
3
 
4
  app = FastAPI(title="AES ML Service")
5
+
6
+ @app.get("/")
7
+ def root():
8
+ return {
9
+ "service": "AES ML Service",
10
+ "status": "running",
11
+ "endpoints": ["/score", "/score/batch"]
12
+ }
13
+
14
+
15
  app.include_router(endpoint.router)