Yaron Koresh commited on
Commit
cc34cb2
·
verified ·
1 Parent(s): e748547

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -362,7 +362,9 @@ def handle(*inp):
362
 
363
  ln = len(result)
364
 
365
- parargs = [[calc,*inp] for i in range(ln)]
 
 
366
  out_pipe = parallel(parargs)
367
  for i in range(ln):
368
  name = generate_random_string(12)+".png"
 
362
 
363
  ln = len(result)
364
 
365
+ def _calc():
366
+ return calc()
367
+ parargs = [[_calc,*inp] for i in range(ln)]
368
  out_pipe = parallel(parargs)
369
  for i in range(ln):
370
  name = generate_random_string(12)+".png"