Spaces:
Runtime error
Runtime error
Commit
·
e5c7a80
1
Parent(s):
f9c800e
Update main.py
Browse files
main.py
CHANGED
@@ -39,8 +39,9 @@ def draw_trace(image: np.ndarray, previous_actions: List[Tuple[str, List[int]]])
|
|
39 |
draw.ellipse([x-2, y-2, x+2, y+2], fill=color)
|
40 |
|
41 |
if i > 0:
|
42 |
-
prev_x, prev_y = previous_actions[i-1][1]
|
43 |
draw.line([prev_x, prev_y, x, y], fill=color, width=1)
|
|
|
44 |
|
45 |
return np.array(pil_image)
|
46 |
|
|
|
39 |
draw.ellipse([x-2, y-2, x+2, y+2], fill=color)
|
40 |
|
41 |
if i > 0:
|
42 |
+
#prev_x, prev_y = previous_actions[i-1][1]
|
43 |
draw.line([prev_x, prev_y, x, y], fill=color, width=1)
|
44 |
+
prev_x, prev_y = x, y
|
45 |
|
46 |
return np.array(pil_image)
|
47 |
|