Spaces:
Running
on
Zero
Running
on
Zero
os.environ('MAX_WORKERS')
Browse files
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 |
|