Spaces:
Running
on
Zero
Running
on
Zero
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -206,8 +206,8 @@ def analyze_page(
|
|
| 206 |
|
| 207 |
out_img = matplotlib_to_pil(fig)
|
| 208 |
|
| 209 |
-
if assume_straight_pages or straighten_pages:
|
| 210 |
-
synthesized_page = out.synthesize()
|
| 211 |
else:
|
| 212 |
synthesized_page = None
|
| 213 |
|
|
|
|
| 206 |
|
| 207 |
out_img = matplotlib_to_pil(fig)
|
| 208 |
|
| 209 |
+
if assume_straight_pages or (not assume_straight_pages and straighten_pages):
|
| 210 |
+
synthesized_page = out.pages[0].synthesize()
|
| 211 |
else:
|
| 212 |
synthesized_page = None
|
| 213 |
|