Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -146,9 +146,11 @@ def get_category_folder(class_id):
|
|
146 |
"""Get appropriate folder for class"""
|
147 |
if class_id in CLOTHING_ITEMS:
|
148 |
return "clothing"
|
|
|
|
|
149 |
|
150 |
else:
|
151 |
-
|
152 |
|
153 |
def upload_to_cloudinary(file_path: str, public_id: str, folder: str = "fashion_segments") -> Dict:
|
154 |
"""Upload file to Cloudinary and return response with URLs"""
|
|
|
146 |
"""Get appropriate folder for class"""
|
147 |
if class_id in CLOTHING_ITEMS:
|
148 |
return "clothing"
|
149 |
+
"""elif class_id in ACCESSORIES:
|
150 |
+
return "accessories"
|
151 |
|
152 |
else:
|
153 |
+
pass # default"""
|
154 |
|
155 |
def upload_to_cloudinary(file_path: str, public_id: str, folder: str = "fashion_segments") -> Dict:
|
156 |
"""Upload file to Cloudinary and return response with URLs"""
|