Spanicin commited on
Commit
c449593
·
verified ·
1 Parent(s): 847c93b

Update app_parallel.py

Browse files
Files changed (1) hide show
  1. 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 = ProcessPoolExecutor(max_workers=1)
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: