Felix92 commited on
Commit
fe8108c
1 Parent(s): b9338f7

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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()[0]
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