2024-09-02 13:50:43 +09:00
|
|
|
from fastapi import FastAPI
|
2024-09-03 13:52:17 +09:00
|
|
|
from api.yolo.detection import router as yolo_detection_router
|
2024-09-05 11:02:52 +09:00
|
|
|
from api.yolo.segmentation import router as yolo_segmentation_router
|
2024-09-02 13:50:43 +09:00
|
|
|
|
|
|
|
app = FastAPI()
|
|
|
|
|
2024-09-03 13:52:17 +09:00
|
|
|
# 각 기능별 라우터를 애플리케이션에 등록
|
2024-09-04 17:36:40 +09:00
|
|
|
app.include_router(yolo_detection_router, prefix="/api")
|
2024-09-05 11:02:52 +09:00
|
|
|
app.include_router(yolo_segmentation_router, prefix="/api")
|
2024-09-03 13:52:17 +09:00
|
|
|
|
|
|
|
# 애플리케이션 실행
|
|
|
|
if __name__ == "__main__":
|
|
|
|
import uvicorn
|
|
|
|
uvicorn.run("main:app", reload=True)
|