Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,8 +34,8 @@ def detect_skin_type_from_image(img):
|
|
| 34 |
|
| 35 |
# ---- Normalize ----
|
| 36 |
oily_norm = min(oily_score / 0.30, 1.0)
|
| 37 |
-
dry_norm = min(texture_score /
|
| 38 |
-
combo_norm = min(combo_score *
|
| 39 |
normal_norm = max(1.0 - (oily_norm + dry_norm + combo_norm) / 3, 0.0)
|
| 40 |
|
| 41 |
# ---- Percentages ----
|
|
|
|
| 34 |
|
| 35 |
# ---- Normalize ----
|
| 36 |
oily_norm = min(oily_score / 0.30, 1.0)
|
| 37 |
+
dry_norm = min(texture_score / 6000.0, 1.0)
|
| 38 |
+
combo_norm = min(combo_score * 5, 1.0)
|
| 39 |
normal_norm = max(1.0 - (oily_norm + dry_norm + combo_norm) / 3, 0.0)
|
| 40 |
|
| 41 |
# ---- Percentages ----
|