nehapasricha94 commited on
Commit
a05253c
1 Parent(s): 8ed452a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -180,7 +180,7 @@ def analyze_emotion_from_image(image):
180
  dominant_colors = analyze_colors(image)
181
  if dominant_colors is None:
182
  return "Error analyzing colors"
183
-
184
  color_emotions, stress_levels = color_emotion_analysis(dominant_colors)
185
 
186
  # Analyze patterns
@@ -191,9 +191,11 @@ def analyze_emotion_from_image(image):
191
 
192
  return overall_result
193
  except Exception as e:
 
194
  return f"Error processing image: {str(e)}"
195
 
196
 
 
197
  # Gradio interface to upload image files and perform analysis
198
  iface = gr.Interface(fn=analyze_emotion_from_image, inputs="image", outputs="text")
199
 
 
180
  dominant_colors = analyze_colors(image)
181
  if dominant_colors is None:
182
  return "Error analyzing colors"
183
+
184
  color_emotions, stress_levels = color_emotion_analysis(dominant_colors)
185
 
186
  # Analyze patterns
 
191
 
192
  return overall_result
193
  except Exception as e:
194
+ print(f"Error processing image: {str(e)}")
195
  return f"Error processing image: {str(e)}"
196
 
197
 
198
+
199
  # Gradio interface to upload image files and perform analysis
200
  iface = gr.Interface(fn=analyze_emotion_from_image, inputs="image", outputs="text")
201