Spaces:
Running
on
Zero
Running
on
Zero
debug.py
CHANGED
|
@@ -35,7 +35,7 @@ def save_image(image_id, image_path: Image.Image) -> None:
|
|
| 35 |
save_image_path = os.path.join(IMAGE_DIR, f"{image_id}.png")
|
| 36 |
with scheduler.lock:
|
| 37 |
try:
|
| 38 |
-
print("Image path: " + image_path)
|
| 39 |
print("Type: " + str(type(image_path)))
|
| 40 |
commit_image = Image.open(image_path)
|
| 41 |
commit_image = commit_image.convert("P", palette=Image.ADAPTIVE, colors=256)
|
|
|
|
| 35 |
save_image_path = os.path.join(IMAGE_DIR, f"{image_id}.png")
|
| 36 |
with scheduler.lock:
|
| 37 |
try:
|
| 38 |
+
# print("Image path: " + image_path)
|
| 39 |
print("Type: " + str(type(image_path)))
|
| 40 |
commit_image = Image.open(image_path)
|
| 41 |
commit_image = commit_image.convert("P", palette=Image.ADAPTIVE, colors=256)
|