| 1234567891011121314151617 |
- """FastAPI application entry point."""
- from __future__ import annotations
- from fastapi import FastAPI
- from app.endpoints.generate_qa_pair import router as qa_router
- def create_app() -> FastAPI:
- app = FastAPI(title="QA Pair Service", version="1.0.0")
- app.include_router(qa_router, prefix="/api")
- return app
- app = create_app()
|