22 lines
475 B
Python
22 lines
475 B
Python
|
|
from pydantic import BaseModel, Field, confloat
|
||
|
|
from typing import Optional, List, Dict, Any
|
||
|
|
|
||
|
|
|
||
|
|
class ImageTo3DRequest(BaseModel):
|
||
|
|
input_images: List[str] = Field(
|
||
|
|
...,
|
||
|
|
description="输入图片路径列表"
|
||
|
|
)
|
||
|
|
|
||
|
|
model: str = Field(
|
||
|
|
default="single",
|
||
|
|
description="模型类型: single 或 multi"
|
||
|
|
)
|
||
|
|
|
||
|
|
|
||
|
|
class ToSVGRequest(BaseModel):
|
||
|
|
minio_glb_path: str = Field(
|
||
|
|
...,
|
||
|
|
description="输入图片路径列表"
|
||
|
|
)
|