Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -153,7 +153,7 @@ def get_top_clip_clothing(probs, n=1):
|
|
| 153 |
#None, "Error: No image provided.")
|
| 154 |
|
| 155 |
#img = input_img.convert("RGB").copy() # Ensure image is in RGB
|
| 156 |
-
def analyze_outfit(image_path):
|
| 157 |
if not image_path or not os.path.exists(image_path):
|
| 158 |
return (
|
| 159 |
"<p style='color: #FF5555; text-align: center;'>Please upload an image.</p>",
|
|
|
|
| 153 |
#None, "Error: No image provided.")
|
| 154 |
|
| 155 |
#img = input_img.convert("RGB").copy() # Ensure image is in RGB
|
| 156 |
+
def analyze_outfit(image_path: str):
|
| 157 |
if not image_path or not os.path.exists(image_path):
|
| 158 |
return (
|
| 159 |
"<p style='color: #FF5555; text-align: center;'>Please upload an image.</p>",
|