Spaces:
Runtime error
Runtime error
Commit
·
ab7037e
1
Parent(s):
c7a7c4e
Update main.py
Browse files
main.py
CHANGED
@@ -100,7 +100,7 @@ def draw_trace(image: np.ndarray, previous_actions: List[Tuple[str, List[int]]],
|
|
100 |
#prev_x, prev_y = previous_actions[i-1][1]
|
101 |
draw.line([prev_x, prev_y, x, y], fill=color, width=1)
|
102 |
prev_x, prev_y = x, y
|
103 |
-
draw.ellipse([x_scaled
|
104 |
#pil_image = pil_image.convert("RGB")
|
105 |
|
106 |
return np.array(pil_image)
|
|
|
100 |
#prev_x, prev_y = previous_actions[i-1][1]
|
101 |
draw.line([prev_x, prev_y, x, y], fill=color, width=1)
|
102 |
prev_x, prev_y = x, y
|
103 |
+
draw.ellipse([x_scaled-2, y_scaled-2, x_scaled+2, y_scaled+2], fill=(0, 255, 0))
|
104 |
#pil_image = pil_image.convert("RGB")
|
105 |
|
106 |
return np.array(pil_image)
|