alakxender commited on
Commit
18bc85b
·
1 Parent(s): fb11fbe
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -196,7 +196,7 @@ def process_pdf(pdf_path, model_name, progress=gr.Progress()):
196
 
197
  # Run text detection on PDF (process first 2 pages)
198
  progress(0.1, desc="Detecting text regions in PDF...")
199
- results = detector.process_input(pdf_path, save_images=True, page_range="0,1")
200
 
201
  # Get text regions for the PDF
202
  regions = detector.get_text_regions(results, os.path.splitext(os.path.basename(pdf_path))[0])
 
196
 
197
  # Run text detection on PDF (process first 2 pages)
198
  progress(0.1, desc="Detecting text regions in PDF...")
199
+ results = detector.process_input(pdf_path, save_images=True, page_range="0")
200
 
201
  # Get text regions for the PDF
202
  regions = detector.get_text_regions(results, os.path.splitext(os.path.basename(pdf_path))[0])