Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -354,7 +354,7 @@ def handle(*inp):
|
|
354 |
ln = len(result)
|
355 |
|
356 |
parargs = [[calc,*inp] for i in range(ln)]
|
357 |
-
out_pipe = parallel(
|
358 |
for i in range(ln):
|
359 |
name = generate_random_string(12)+".png"
|
360 |
export_to_gif(out_pipe[i].frames[0],name,fps=fps)
|
|
|
354 |
ln = len(result)
|
355 |
|
356 |
parargs = [[calc,*inp] for i in range(ln)]
|
357 |
+
out_pipe = parallel(5,parargs)
|
358 |
for i in range(ln):
|
359 |
name = generate_random_string(12)+".png"
|
360 |
export_to_gif(out_pipe[i].frames[0],name,fps=fps)
|