mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-01-30 02:59:42 +08:00
25 lines
419 B
Python
25 lines
419 B
Python
import logging
|
|
|
|
from fastapi import FastAPI, Depends
|
|
|
|
from config import get_settings, Settings
|
|
|
|
from api import ping, query
|
|
|
|
log = logging.getLogger("uvicorn")
|
|
|
|
|
|
def create_application() -> FastAPI:
|
|
application = FastAPI()
|
|
application.include_router(ping.router)
|
|
application.include_router(
|
|
query.router, prefix="/query", tags=["query"]
|
|
)
|
|
|
|
return application
|
|
|
|
|
|
app = create_application()
|
|
|
|
|