Anustup commited on
Commit
3f02bf3
·
verified ·
1 Parent(s): 7205085

Update summarizer.py

Browse files
Files changed (1) hide show
  1. summarizer.py +2 -2
summarizer.py CHANGED
@@ -67,7 +67,7 @@ def check_and_compress_image(image_path, output_path, target_size_mb=4, max_size
67
  img.save(output_path, optimize=True, quality=quality)
68
  image_size = os.path.getsize(output_path) / (1024 * 1024)
69
  quality -= 5
70
- print(f"Compressed image size: {image_size:.2f} MB")
71
  else:
72
- print("Image is within size limits, no compression needed.")
73
 
 
67
  img.save(output_path, optimize=True, quality=quality)
68
  image_size = os.path.getsize(output_path) / (1024 * 1024)
69
  quality -= 5
70
+ return {"success": True}
71
  else:
72
+ {"success": False}
73