Yaron Koresh commited on
Commit
3ca0ea9
·
verified ·
1 Parent(s): bfc3a2f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- print(out_pipe)
 
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)