Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -287,5 +287,15 @@ def main():
|
|
| 287 |
]
|
| 288 |
)
|
| 289 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 290 |
if __name__ == '__main__':
|
| 291 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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()
|