fix 代码整理
This commit is contained in:
@@ -16,9 +16,9 @@ logger = logging.getLogger()
|
||||
router = APIRouter()
|
||||
|
||||
|
||||
@RunTime
|
||||
@router.post("outfit_matcher")
|
||||
def outfit_matcher(request_item: OutfitMatcher):
|
||||
start_time = time.time()
|
||||
request_item = dict(request_item)
|
||||
for i in range(len(request_item['query'])):
|
||||
request_item['query'][i] = dict(request_item['query'][i])
|
||||
@@ -69,7 +69,6 @@ def outfit_matcher(request_item: OutfitMatcher):
|
||||
prepared_feature[hfd['item_name']] = hfd['features']
|
||||
|
||||
result = []
|
||||
start_time = time.time()
|
||||
for item in request_item['query']:
|
||||
# try:
|
||||
outfits = fashion_dataset.generate_outfit(item, request_item["topk"], request_item["max_outfits"])
|
||||
|
||||
Reference in New Issue
Block a user