File size: 319 Bytes
230defe | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | from fastapi import FastAPI
from app.service import router as sentiment_analysis_router
# Initialize FastAPI app
app = FastAPI()
# Include both APIs
app.include_router(sentiment_analysis_router, prefix="/api", tags=["SentimentAnalyser"])
@app.get("/")
async def root():
return {"message": "Welcome to backend"}
|