Spaces:
Running
on
Zero
Running
on
Zero
update
Browse files
app.py
CHANGED
@@ -340,7 +340,7 @@ def run(img_str):
|
|
340 |
from concurrent.futures import ProcessPoolExecutor
|
341 |
from concurrent.futures import as_completed
|
342 |
gif_results = []
|
343 |
-
with ProcessPoolExecutor(max_workers=
|
344 |
futures = [executor.submit(run_code, new_folder, i, code) for i, code in enumerate(codes)]
|
345 |
for future in as_completed(futures):
|
346 |
try:
|
|
|
340 |
from concurrent.futures import ProcessPoolExecutor
|
341 |
from concurrent.futures import as_completed
|
342 |
gif_results = []
|
343 |
+
with ProcessPoolExecutor(max_workers=10) as executor:
|
344 |
futures = [executor.submit(run_code, new_folder, i, code) for i, code in enumerate(codes)]
|
345 |
for future in as_completed(futures):
|
346 |
try:
|