| from fastapi import FastAPI, HTTPException | |
| from graph.langgraph_pipeline import run_pipeline | |
| from schemas import VerifyRequest, VerifyResponse | |
| app = FastAPI(title="Arabic Verifier Service") | |
| async def verify(req: VerifyRequest): | |
| try: | |
| result = await run_pipeline(req.text) | |
| return result | |
| except Exception as e: | |
| raise HTTPException(status_code=500, detail=str(e)) | |
| async def health(): | |
| return {"status": "ok"} | |