nehapasricha94 commited on
Commit
028e80e
1 Parent(s): 62873b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.7 # 70% for color-based emotions and stress
121
- pattern_weight = 0.3 # 30% for pattern analysis
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)