ml-services / app.py
ABHINAY2025
add FastAPI ML service with semantic engine
00ff675
raw
history blame contribute delete
326 Bytes
from fastapi import FastAPI
from pydantic import BaseModel
from semantic_engine.pipeline import process_experience
app = FastAPI()
@app.get("/health")
def health():
return {"status": "ok"}
class Request(BaseModel):
text: str
@app.post("/analyze")
def analyze(req: Request):
return process_experience(req.text)