llmgaurdrails / app.py
Sasidhar's picture
Upload 8 files
5a79e57 verified
raw
history blame contribute delete
479 Bytes
from fastapi import FastAPI, HTTPException
from pydantic import BaseModel
import re
app = FastAPI()
from fastapi import FastAPI
from endpoints import groundedness ,gaurdrails
app = FastAPI(title="My Multi-Endpoint App")
app.include_router(groundedness.router)
app.include_router(gaurdrails.router)
# app.include_router(another_endpoint.router)
@app.get("/")
def read_root():
return {"message": "Welcome to my API with multiple endpoints!"}