Spaces:
Running
on
Zero
Running
on
Zero
Update debug.py
Browse files
debug.py
CHANGED
@@ -46,7 +46,6 @@ def save_image(image_id, image_path: Image.Image) -> None:
|
|
46 |
print("Type: " + str(type(image_path)))
|
47 |
with load_image(image_path) as img:
|
48 |
img = Image.Image.load(img)
|
49 |
-
img = img.convert("P", palette=Image.ADAPTIVE, colors=256)
|
50 |
img.save(save_image_path)
|
51 |
|
52 |
print(f"Saved image: {save_image_path}")
|
|
|
46 |
print("Type: " + str(type(image_path)))
|
47 |
with load_image(image_path) as img:
|
48 |
img = Image.Image.load(img)
|
|
|
49 |
img.save(save_image_path)
|
50 |
|
51 |
print(f"Saved image: {save_image_path}")
|