prithivMLmods commited on
Commit
dfd5730
·
verified ·
1 Parent(s): 858b4b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -287,5 +287,15 @@ def main():
287
  ]
288
  )
289
 
 
 
 
 
 
290
  if __name__ == '__main__':
291
- demo.queue().launch(debug=True, show_error=True)
 
 
 
 
 
 
287
  ]
288
  )
289
 
290
+ # NOTE: Page navigation buttons (prev_page_btn, next_page_btn) are for UI purposes only.
291
+ # The backend logic does not support page-by-page viewing and processes the whole document at once.
292
+
293
+ demo.queue().launch(debug=True, show_error=True, ssr_mode=False)
294
+
295
  if __name__ == '__main__':
296
+ # Create the 'examples' directory if it doesn't exist
297
+ if not os.path.exists("examples"):
298
+ os.makedirs("examples")
299
+ logger.info("Created 'examples' directory. Please add some sample PDF/image files there.")
300
+
301
+ main()