Spaces:
Running
on
Zero
Running
on
Zero
debug.py
CHANGED
|
@@ -38,7 +38,7 @@ def save_image(image_id, image_path: Image.Image) -> None:
|
|
| 38 |
try:
|
| 39 |
# print("Image path: " + image_path)
|
| 40 |
print("Type: " + str(type(image_path)))
|
| 41 |
-
with Image.open(
|
| 42 |
img = Image.open(image_path)
|
| 43 |
img = img.convert("P", palette=Image.ADAPTIVE, colors=256)
|
| 44 |
img.save(save_image_path)
|
|
|
|
| 38 |
try:
|
| 39 |
# print("Image path: " + image_path)
|
| 40 |
print("Type: " + str(type(image_path)))
|
| 41 |
+
with Image.open(image_id) as img:
|
| 42 |
img = Image.open(image_path)
|
| 43 |
img = img.convert("P", palette=Image.ADAPTIVE, colors=256)
|
| 44 |
img.save(save_image_path)
|