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