Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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
|
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 =
|
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 |
|