Initial
This commit is contained in:
commit
2ca7a264b3
53 files changed
+7113
No files matched your search
@@ -0,0 +1,14 @@
|
||||
from fastapi import FastAPI
|
||||
from .strategy import decide
|
||||
|
||||
app = FastAPI(docs_url=None, redoc_url=None)
|
||||
|
||||
|
||||
@app.get("/health")
|
||||
def health():
|
||||
return {"ready": True}
|
||||
|
||||
|
||||
@app.post("/decide")
|
||||
def evaluate(payload: dict):
|
||||
return decide(payload)
|
||||
Reference in new issue
Block a user