LPX55 commited on
Commit
575e475
·
verified ·
1 Parent(s): 38342e5

Update debug.py

Browse files
Files changed (1) hide show
  1. debug.py +3 -3
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
- with load_image(image_path) as img:
56
- img = Image.Image.load(img)
57
- img.save(save_image_path)
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: