Picture using minio service
This commit is contained in:
6
app/schemas/attribute.py
Normal file
6
app/schemas/attribute.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class AttributeModel(BaseModel):
|
||||
upload_img_path: list
|
||||
upload_img_id: list
|
||||
15
app/schemas/outfit_matcher.py
Normal file
15
app/schemas/outfit_matcher.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class OMDataItem(BaseModel):
|
||||
item_name: str
|
||||
semantic_category: str
|
||||
image_path: str
|
||||
|
||||
|
||||
class OutfitMatcher(BaseModel):
|
||||
topk: int
|
||||
max_outfits: int
|
||||
is_best: bool
|
||||
query: list[OMDataItem]
|
||||
database: list[OMDataItem]
|
||||
@@ -1,5 +0,0 @@
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class OutfitMatcher(BaseModel):
|
||||
pass
|
||||
Reference in New Issue
Block a user