Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -142,7 +142,7 @@ def parallel(*pairs):
|
|
142 |
running_tasks = []
|
143 |
|
144 |
for pair in pairs:
|
145 |
-
|
146 |
running_tasks.append(Process(target=task, args=(pair,)))
|
147 |
for running_task in running_tasks:
|
148 |
running_task.start()
|
|
|
142 |
running_tasks = []
|
143 |
|
144 |
for pair in pairs:
|
145 |
+
task = pair.pop(0)
|
146 |
running_tasks.append(Process(target=task, args=(pair,)))
|
147 |
for running_task in running_tasks:
|
148 |
running_task.start()
|