nehapasricha94 commited on
Commit
967c1f2
1 Parent(s): 731983b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -12,6 +12,7 @@ emotion_classifier = pipeline("text-classification", model="j-hartmann/emotion-e
12
 
13
  # Function to analyze colors in an image
14
  def analyze_colors(image):
 
15
  try:
16
  # Ensure the image is in RGB format
17
  if image.mode != "RGB":
 
12
 
13
  # Function to analyze colors in an image
14
  def analyze_colors(image):
15
+ print(f"Image type: {type(image)}, Image mode: {image.mode}") # Debugging line
16
  try:
17
  # Ensure the image is in RGB format
18
  if image.mode != "RGB":