feat 新增 process lookbooks 接口
fix
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
BIN
requirements.txt
BIN
requirements.txt
Binary file not shown.
Reference in New Issue
Block a user