Spaces:
Running
Running
Update app.py
Browse files
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
|
|
|
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))
|