Sephfox commited on
Commit
6d65a62
1 Parent(s): f869034

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -596,9 +596,10 @@ def create_avatar_with_heatmap():
596
  combined_img = Image.alpha_composite(avatar_img.convert('RGBA'), heatmap_img)
597
  return combined_img
598
 
599
- # Create the avatar with heatmap
 
600
  avatar_with_heatmap = create_avatar_with_heatmap()
601
-
602
  # Create avatar function
603
  def create_avatar():
604
  img = Image.new('RGBA', (AVATAR_WIDTH, AVATAR_HEIGHT), color=(0, 0, 0, 0))
 
596
  combined_img = Image.alpha_composite(avatar_img.convert('RGBA'), heatmap_img)
597
  return combined_img
598
 
599
+ # Create and display avatar with heatmap
600
+ st.subheader("Avatar with Sensation Heatmap")
601
  avatar_with_heatmap = create_avatar_with_heatmap()
602
+ st.image(avatar_with_heatmap, use_column_width=True)
603
  # Create avatar function
604
  def create_avatar():
605
  img = Image.new('RGBA', (AVATAR_WIDTH, AVATAR_HEIGHT), color=(0, 0, 0, 0))