Spaces:
Runtime error
Runtime error
Commit
·
320b085
1
Parent(s):
9179c04
Update main.py
Browse files
main.py
CHANGED
|
@@ -28,7 +28,7 @@ def generate_random_image(width: int, height: int) -> np.ndarray:
|
|
| 28 |
|
| 29 |
def draw_trace(image: np.ndarray, previous_actions: List[Tuple[str, List[int]]]) -> np.ndarray:
|
| 30 |
pil_image = Image.fromarray(image)
|
| 31 |
-
|
| 32 |
draw = ImageDraw.Draw(pil_image)
|
| 33 |
flag = True
|
| 34 |
prev_x, prev_y = None, None
|
|
|
|
| 28 |
|
| 29 |
def draw_trace(image: np.ndarray, previous_actions: List[Tuple[str, List[int]]]) -> np.ndarray:
|
| 30 |
pil_image = Image.fromarray(image)
|
| 31 |
+
pil_image = Image.open('image_3.png')
|
| 32 |
draw = ImageDraw.Draw(pil_image)
|
| 33 |
flag = True
|
| 34 |
prev_x, prev_y = None, None
|