Spaces:
Runtime error
Runtime error
Commit
·
80bed0e
1
Parent(s):
15798a0
Update main.py
Browse files
main.py
CHANGED
@@ -114,7 +114,7 @@ def draw_trace(image: np.ndarray, previous_actions: List[Tuple[str, List[int]]],
|
|
114 |
# #prev_x, prev_y = previous_actions[i-1][1]
|
115 |
# draw.line([prev_x, prev_y, x, y], fill=color, width=1)
|
116 |
prev_x, prev_y = x, y
|
117 |
-
draw.ellipse([x_scaled*
|
118 |
#pil_image = pil_image.convert("RGB")
|
119 |
|
120 |
return np.array(pil_image)
|
|
|
114 |
# #prev_x, prev_y = previous_actions[i-1][1]
|
115 |
# draw.line([prev_x, prev_y, x, y], fill=color, width=1)
|
116 |
prev_x, prev_y = x, y
|
117 |
+
draw.ellipse([x_scaled*8-2, y_scaled*8-2, x_scaled*8+2, y_scaled*8+2], fill=(0, 255, 0))
|
118 |
#pil_image = pil_image.convert("RGB")
|
119 |
|
120 |
return np.array(pil_image)
|