Spaces:
Runtime error
Runtime error
Commit
·
eccb2f0
1
Parent(s):
5587923
Update main.py
Browse files
main.py
CHANGED
|
@@ -33,7 +33,7 @@ def draw_trace(image: np.ndarray, previous_actions: List[Tuple[str, List[int]]])
|
|
| 33 |
for i, (action_type, position) in enumerate(previous_actions):
|
| 34 |
color = (255, 0, 0) if action_type == "move" else (0, 255, 0)
|
| 35 |
x, y = position
|
| 36 |
-
if x
|
| 37 |
continue
|
| 38 |
else:
|
| 39 |
flag = False
|
|
|
|
| 33 |
for i, (action_type, position) in enumerate(previous_actions):
|
| 34 |
color = (255, 0, 0) if action_type == "move" else (0, 255, 0)
|
| 35 |
x, y = position
|
| 36 |
+
if x == 0 and y == 0 and flag:
|
| 37 |
continue
|
| 38 |
else:
|
| 39 |
flag = False
|