HelloWorld0204 commited on
Commit
e4ac124
·
verified ·
1 Parent(s): 331ba4d

Upload 22 files

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -3744,10 +3744,10 @@ def ai_recommend_outfits(payload: dict[str, Any] = Body(default_factory=dict)) -
3744
  def ai_classify_item(payload: dict[str, Any] = Body(default_factory=dict)) -> dict[str, Any]:
3745
  """
3746
  Classify a fashion item using NVIDIA model (primary) with HuggingFace fallback.
3747
-
3748
  Args:
3749
  item: Wardrobe item dict with metadata and/or image_url
3750
-
3751
  Returns:
3752
  Classification result with category, confidence, and attributes
3753
  """
@@ -3755,10 +3755,10 @@ def ai_classify_item(payload: dict[str, Any] = Body(default_factory=dict)) -> di
3755
  item = payload.get("item")
3756
  if not isinstance(item, dict):
3757
  raise HTTPException(status_code=400, detail="'item' must be a dictionary")
3758
-
3759
  service = get_recommendation_service()
3760
  result = service.classify_item(item)
3761
-
3762
  return {
3763
  "success": True,
3764
  "classification": result,
 
3744
  def ai_classify_item(payload: dict[str, Any] = Body(default_factory=dict)) -> dict[str, Any]:
3745
  """
3746
  Classify a fashion item using NVIDIA model (primary) with HuggingFace fallback.
3747
+
3748
  Args:
3749
  item: Wardrobe item dict with metadata and/or image_url
3750
+
3751
  Returns:
3752
  Classification result with category, confidence, and attributes
3753
  """
 
3755
  item = payload.get("item")
3756
  if not isinstance(item, dict):
3757
  raise HTTPException(status_code=400, detail="'item' must be a dictionary")
3758
+
3759
  service = get_recommendation_service()
3760
  result = service.classify_item(item)
3761
+
3762
  return {
3763
  "success": True,
3764
  "classification": result,