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