Update app.py
Browse files
app.py
CHANGED
|
@@ -262,6 +262,8 @@ def compare_items():
|
|
| 262 |
FEATURE_WEIGHTS["color"] * color_score +
|
| 263 |
FEATURE_WEIGHTS["texture"] * texture_score)
|
| 264 |
|
|
|
|
|
|
|
| 265 |
image_score = stretch_image_score(raw_image_score)
|
| 266 |
|
| 267 |
# Weighted average of image and text scores
|
|
|
|
| 262 |
FEATURE_WEIGHTS["color"] * color_score +
|
| 263 |
FEATURE_WEIGHTS["texture"] * texture_score)
|
| 264 |
|
| 265 |
+
print(f" - Raw Image Score: {raw_image_score:.4f}")
|
| 266 |
+
|
| 267 |
image_score = stretch_image_score(raw_image_score)
|
| 268 |
|
| 269 |
# Weighted average of image and text scores
|