fffiloni commited on
Commit
14c5d66
1 Parent(s): 9ec41d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,7 +5,7 @@
5
  # LICENSE file in the root directory of this source tree.
6
 
7
  import argparse
8
- from concurrent.futures import ProcessPoolExecutor
9
  import logging
10
  import os
11
  from pathlib import Path
@@ -44,7 +44,7 @@ def _call_nostderr(*args, **kwargs):
44
 
45
  sp.call = _call_nostderr
46
  # Preallocating the pool of processes.
47
- pool = ProcessPoolExecutor(4)
48
  pool.__enter__()
49
 
50
 
 
5
  # LICENSE file in the root directory of this source tree.
6
 
7
  import argparse
8
+ from concurrent.futures import ThreadPoolExecutor
9
  import logging
10
  import os
11
  from pathlib import Path
 
44
 
45
  sp.call = _call_nostderr
46
  # Preallocating the pool of processes.
47
+ pool = ThreadPoolExecutor(4)
48
  pool.__enter__()
49
 
50