Spaces:
Runtime error
Runtime error
da03
commited on
Commit
·
f024b1d
1
Parent(s):
f8d24b9
main.py
CHANGED
|
@@ -98,6 +98,8 @@ def generate_random_image(width: int, height: int) -> np.ndarray:
|
|
| 98 |
return np.random.randint(0, 256, (height, width, 3), dtype=np.uint8)
|
| 99 |
|
| 100 |
def draw_trace(image: np.ndarray, previous_actions: List[Tuple[str, List[int]]], x_scaled=-1, y_scaled=-1) -> np.ndarray:
|
|
|
|
|
|
|
| 101 |
pil_image = Image.fromarray(image)
|
| 102 |
draw = ImageDraw.Draw(pil_image)
|
| 103 |
|
|
|
|
| 98 |
return np.random.randint(0, 256, (height, width, 3), dtype=np.uint8)
|
| 99 |
|
| 100 |
def draw_trace(image: np.ndarray, previous_actions: List[Tuple[str, List[int]]], x_scaled=-1, y_scaled=-1) -> np.ndarray:
|
| 101 |
+
if True:
|
| 102 |
+
return image
|
| 103 |
pil_image = Image.fromarray(image)
|
| 104 |
draw = ImageDraw.Draw(pil_image)
|
| 105 |
|