Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -571,11 +571,11 @@ def create_avatar():
|
|
571 |
draw.line([(365 + i*3, 790), (363 + i*3, 800)], fill=(0, 255, 255, 200), width=2)
|
572 |
|
573 |
# Neural network lines
|
574 |
-
|
575 |
start = (np.random.randint(0, AVATAR_WIDTH), np.random.randint(0, AVATAR_HEIGHT))
|
576 |
end = (np.random.randint(0, AVATAR_WIDTH), np.random.randint(0, AVATAR_HEIGHT))
|
577 |
draw.line([start, end], fill=(0, 255, 255, 50), width=1)
|
578 |
-
|
579 |
|
580 |
|
581 |
# Create and display avatar with heatmap
|
|
|
571 |
draw.line([(365 + i*3, 790), (363 + i*3, 800)], fill=(0, 255, 255, 200), width=2)
|
572 |
|
573 |
# Neural network lines
|
574 |
+
for _ in range(100):
|
575 |
start = (np.random.randint(0, AVATAR_WIDTH), np.random.randint(0, AVATAR_HEIGHT))
|
576 |
end = (np.random.randint(0, AVATAR_WIDTH), np.random.randint(0, AVATAR_HEIGHT))
|
577 |
draw.line([start, end], fill=(0, 255, 255, 50), width=1)
|
578 |
+
return img
|
579 |
|
580 |
|
581 |
# Create and display avatar with heatmap
|