Spaces:
Sleeping
Sleeping
roor endpoint
Browse files
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)
|