Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
|
@@ -187,7 +187,7 @@ def perform_ocr(image, bbox):
|
|
| 187 |
except Exception as e:
|
| 188 |
return f"OCR Error: {str(e)}"
|
| 189 |
|
| 190 |
-
def scale_image_to_fixed_size(image, max_width=
|
| 191 |
"""Scale image to fit within max dimensions while maintaining aspect ratio - NO PADDING"""
|
| 192 |
if image.mode not in ('RGB', 'RGBA'):
|
| 193 |
image = image.convert('RGB')
|
|
|
|
| 187 |
except Exception as e:
|
| 188 |
return f"OCR Error: {str(e)}"
|
| 189 |
|
| 190 |
+
def scale_image_to_fixed_size(image, max_width=1300, max_height=1100):
|
| 191 |
"""Scale image to fit within max dimensions while maintaining aspect ratio - NO PADDING"""
|
| 192 |
if image.mode not in ('RGB', 'RGBA'):
|
| 193 |
image = image.convert('RGB')
|