Sephfox commited on
Commit
3d05c16
1 Parent(s): be403da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
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
- # 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
 
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