yeq6x commited on
Commit
d859980
1 Parent(s): 6a5c192

os.environ('MAX_WORKERS')

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -42,7 +42,7 @@ active_tasks = {}
42
  task_futures = {}
43
 
44
  # ThreadPoolExecutorの作成
45
- executor = concurrent.futures.ThreadPoolExecutor(max_workers=os.environ.get('MAX_WORKERS', 4))
46
 
47
  gpu_lock = threading.Lock()
48
 
 
42
  task_futures = {}
43
 
44
  # ThreadPoolExecutorの作成
45
+ executor = concurrent.futures.ThreadPoolExecutor(max_workers=int(os.environ.get('MAX_WORKERS', 4)))
46
 
47
  gpu_lock = threading.Lock()
48