Spaces:
Paused
Paused
Update app_parallel.py
Browse files- app_parallel.py +2 -2
app_parallel.py
CHANGED
@@ -22,13 +22,13 @@ import requests
|
|
22 |
import json
|
23 |
import pickle
|
24 |
# from dotenv import load_dotenv
|
25 |
-
from concurrent.futures import ProcessPoolExecutor, as_completed
|
26 |
|
27 |
# Load environment variables from .env file
|
28 |
# load_dotenv()
|
29 |
|
30 |
# Initialize ProcessPoolExecutor for parallel processing
|
31 |
-
executor =
|
32 |
|
33 |
|
34 |
class AnimationConfig:
|
|
|
22 |
import json
|
23 |
import pickle
|
24 |
# from dotenv import load_dotenv
|
25 |
+
from concurrent.futures import ProcessPoolExecutor, as_completed, ThreadPoolExecutor
|
26 |
|
27 |
# Load environment variables from .env file
|
28 |
# load_dotenv()
|
29 |
|
30 |
# Initialize ProcessPoolExecutor for parallel processing
|
31 |
+
executor = ThreadPoolExecutor(max_workers=2)
|
32 |
|
33 |
|
34 |
class AnimationConfig:
|