Spaces:
Running
on
Zero
Running
on
Zero
Update debug.py
Browse files
debug.py
CHANGED
|
@@ -52,9 +52,9 @@ def save_image(image_id, image_path: Image.Image) -> None:
|
|
| 52 |
cache_temp(save_image_path)
|
| 53 |
# print("Image path: " + image_path)
|
| 54 |
print("Type: " + str(type(image_path)))
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
|
| 59 |
print(f"Saved image: {save_image_path}")
|
| 60 |
except Exception as e:
|
|
|
|
| 52 |
cache_temp(save_image_path)
|
| 53 |
# print("Image path: " + image_path)
|
| 54 |
print("Type: " + str(type(image_path)))
|
| 55 |
+
try:
|
| 56 |
+
# img2 = img2.open(img)
|
| 57 |
+
loaded.save(save_image_path)
|
| 58 |
|
| 59 |
print(f"Saved image: {save_image_path}")
|
| 60 |
except Exception as e:
|