Commit
·
d199eca
1
Parent(s):
4c99424
update
Browse files
app.py
CHANGED
@@ -70,7 +70,7 @@ def classify_traits(profile):
|
|
70 |
else:
|
71 |
return "HIGH"
|
72 |
|
73 |
-
# Determine
|
74 |
scores = [float(details['score']) for details in main_profile.values()]
|
75 |
if any(score >= 67 for score in scores):
|
76 |
threshold = 67
|
@@ -79,7 +79,7 @@ def classify_traits(profile):
|
|
79 |
else:
|
80 |
threshold = None # No strengths if all scores are below 50.
|
81 |
|
82 |
-
# Classify each trait
|
83 |
for trait, details in main_profile.items():
|
84 |
score = float(details['score'])
|
85 |
range_label = get_range_label(score)
|
|
|
70 |
else:
|
71 |
return "HIGH"
|
72 |
|
73 |
+
# Determine threshold for classifying strengths.
|
74 |
scores = [float(details['score']) for details in main_profile.values()]
|
75 |
if any(score >= 67 for score in scores):
|
76 |
threshold = 67
|
|
|
79 |
else:
|
80 |
threshold = None # No strengths if all scores are below 50.
|
81 |
|
82 |
+
# Classify each trait based on the threshold and label the range.
|
83 |
for trait, details in main_profile.items():
|
84 |
score = float(details['score'])
|
85 |
range_label = get_range_label(score)
|