Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -350,7 +350,7 @@ def analyze_outfit(input_img):
|
|
| 350 |
final_score = raw_weighted_score * 100
|
| 351 |
|
| 352 |
# Clip it just in case (though it shouldn't exceed 100 now)
|
| 353 |
-
final_score = min(max(final_score,
|
| 354 |
|
| 355 |
# Now classify the category based on the final_score
|
| 356 |
if final_score >= 50:
|
|
|
|
| 350 |
final_score = raw_weighted_score * 100
|
| 351 |
|
| 352 |
# Clip it just in case (though it shouldn't exceed 100 now)
|
| 353 |
+
final_score = min(max(final_score, 0), 100)
|
| 354 |
|
| 355 |
# Now classify the category based on the final_score
|
| 356 |
if final_score >= 50:
|