feat 新增 process lookbooks 接口

fix
This commit is contained in:
zhouchengrong
2024-10-21 22:42:42 +08:00
parent 7f9caf9d0e
commit b35885e2be
3 changed files with 3 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ RUN pip install -r requirements.txt
RUN pip install gunicorn RUN pip install gunicorn
RUN pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 RUN pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
RUN pip install mmcv==1.4.2 -f https://download.openmmlab.com/mmcv/dist/cu117/torch1.13/index.html RUN pip install mmcv==1.4.2 -f https://download.openmmlab.com/mmcv/dist/cu117/torch1.13/index.html
RUN
WORKDIR /app WORKDIR /app
COPY . . COPY . .
RUN mkdir -p app/logs RUN mkdir -p app/logs

View File

@@ -3,8 +3,9 @@ import os
import shutil import shutil
from typing import List from typing import List
import aiofiles
import tqdm import tqdm
from fastapi import UploadFile, File, APIRouter, BackgroundTasks from fastapi import UploadFile, File, APIRouter, BackgroundTasks, Form
from app.service.lookbooks.service import create_image_batch_requests, process_lookbook_task # 引入服务逻辑 from app.service.lookbooks.service import create_image_batch_requests, process_lookbook_task # 引入服务逻辑
logger = logging.getLogger() logger = logging.getLogger()

Binary file not shown.