Kyan14 commited on
Commit
53d690d
·
1 Parent(s): a49cb77

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -64,12 +64,13 @@ def generate_art(mood):
64
  # Download the image and return it as a PIL Image
65
  image_response = requests.get(image_url)
66
  image = Image.open(BytesIO(image_response.content))
67
-
68
  return image
69
 
70
 
71
  def mood_art_generator(image):
72
  mood = get_mood_from_image(image)
 
73
  if mood:
74
  art = generate_art(mood)
75
  return np.array(art)
 
64
  # Download the image and return it as a PIL Image
65
  image_response = requests.get(image_url)
66
  image = Image.open(BytesIO(image_response.content))
67
+ print("Art Image Mode:", image.mode)
68
  return image
69
 
70
 
71
  def mood_art_generator(image):
72
  mood = get_mood_from_image(image)
73
+ print("Mood:", mood)
74
  if mood:
75
  art = generate_art(mood)
76
  return np.array(art)