Genzo1010 commited on
Commit
f3f4390
·
verified ·
1 Parent(s): f0b0206

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ paddle_ocr = PaddleOCR(lang='en', use_angle_cls=True, use_gpu=True)
29
  num_cpus = os.cpu_count()
30
 
31
  # Initialize ThreadPoolExecutor with 2 workers
32
- executor = ThreadPoolExecutor(max_workers=2)
33
 
34
  def ocr_with_doctr(file):
35
  text_output = ''
 
29
  num_cpus = os.cpu_count()
30
 
31
  # Initialize ThreadPoolExecutor with 2 workers
32
+ executor = ThreadPoolExecutor(max_workers=num_cpus)
33
 
34
  def ocr_with_doctr(file):
35
  text_output = ''