File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2775,7 +2775,7 @@ def process_pages(pagesArgs):
27752775 return pageOutputs
27762776
27772777 def run_serial(pages):
2778- from tqdm.auto import tqdm
2778+ # from tqdm.auto import tqdm
27792779 results = []
27802780 for i in tqdm(range(len(pages)), desc="Processing pages"):
27812781 results.append(process_page(pages[i]))
@@ -2784,7 +2784,7 @@ def run_serial(pages):
27842784
27852785 def run_parallel(pages):
27862786 from multiprocessing import cpu_count
2787- from tqdm.auto import tqdm
2787+ # from tqdm.auto import tqdm
27882788
27892789 # Parallel execution based on either the number of pages or number of CPU cores
27902790 num_cores = min(cpu_count(), len(pages))
@@ -2847,7 +2847,7 @@ def getJsonFromPDFEncapsulatedPyMuPdf(decoded_bytes):
28472847 # from tqdm.auto import tqdm
28482848 # import fitz
28492849 # import io
2850- from concurrent.futures import ThreadPoolExecutor
2850+ # from concurrent.futures import ThreadPoolExecutor
28512851 # import json
28522852 # import re
28532853 # import multiprocessing
@@ -3108,8 +3108,8 @@ def process_pages(args):
31083108# Text extraction from PDF by Vic49
31093109# Modified for compatibility with KCPP by Esolithe
31103110def getTextFromPDFJsonEncapsulatedPyMuPdf(pages):
3111- import json
3112- import textwrap
3111+ # import json
3112+ # import textwrap
31133113
31143114 def col_widths(rows):
31153115 w = []
You can’t perform that action at this time.
0 commit comments