Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -283,6 +283,7 @@ def analyze_outfit(input_img):
|
|
| 283 |
clip_detected_item_prob = 0.0
|
| 284 |
category_key = 'mid' # Default category
|
| 285 |
final_score_str = "N/A"
|
|
|
|
| 286 |
|
| 287 |
try:
|
| 288 |
image_tensor = clip_preprocess(cropped_img).unsqueeze(0).to(DEVICE)
|
|
|
|
| 283 |
clip_detected_item_prob = 0.0
|
| 284 |
category_key = 'mid' # Default category
|
| 285 |
final_score_str = "N/A"
|
| 286 |
+
final_score = 0.0
|
| 287 |
|
| 288 |
try:
|
| 289 |
image_tensor = clip_preprocess(cropped_img).unsqueeze(0).to(DEVICE)
|