Spaces:
Sleeping
Sleeping
Update summarizer.py
Browse files- 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 |
-
|
71 |
else:
|
72 |
-
|
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 |
|