23 lines
502 B
Python
23 lines
502 B
Python
import logging
|
|
|
|
from fastapi import FastAPI
|
|
from router import deepseek_router
|
|
|
|
logging.basicConfig(
|
|
level=logging.INFO, format="%(asctime)s [%(levelname)s] %(name)s - %(message)s"
|
|
)
|
|
|
|
app = FastAPI(
|
|
title="DeepSeek OCR Service",
|
|
description="OCR Gateway로부터 파일 요청을 받아 텍스트를 추출하는 API",
|
|
docs_url="/docs",
|
|
)
|
|
|
|
|
|
@app.get("/health/API", include_in_schema=False)
|
|
async def health_check():
|
|
return {"status": "API ok"}
|
|
|
|
|
|
app.include_router(deepseek_router)
|