Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
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 = ''
|