Spaces:
Sleeping
Sleeping
nehapasricha94
commited on
Commit
•
028e80e
1
Parent(s):
62873b7
Update app.py
Browse files
app.py
CHANGED
@@ -117,8 +117,8 @@ def analyze_patterns(image):
|
|
117 |
def compute_overall_result(color_emotions, stress_levels, pattern_analysis, pattern_stress):
|
118 |
try:
|
119 |
# Assigning weightage to different factors
|
120 |
-
color_emotion_weight = 0.
|
121 |
-
pattern_weight = 0.
|
122 |
|
123 |
# Determine the most common emotion from colors
|
124 |
dominant_emotion = max(set(color_emotions), key=color_emotions.count)
|
|
|
117 |
def compute_overall_result(color_emotions, stress_levels, pattern_analysis, pattern_stress):
|
118 |
try:
|
119 |
# Assigning weightage to different factors
|
120 |
+
color_emotion_weight = 0.5 # 70% for color-based emotions and stress
|
121 |
+
pattern_weight = 0.5 # 30% for pattern analysis
|
122 |
|
123 |
# Determine the most common emotion from colors
|
124 |
dominant_emotion = max(set(color_emotions), key=color_emotions.count)
|