Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -141,7 +141,6 @@ def main(p1,p2):
|
|
141 |
arr = [p for _ in rng]
|
142 |
with mp.Pool(ln, initializer=init_pool) as pool:
|
143 |
out = pool.imap(infer,arr)
|
144 |
-
pool.clear()
|
145 |
return list(out.get())
|
146 |
|
147 |
def infer(p):
|
|
|
141 |
arr = [p for _ in rng]
|
142 |
with mp.Pool(ln, initializer=init_pool) as pool:
|
143 |
out = pool.imap(infer,arr)
|
|
|
144 |
return list(out.get())
|
145 |
|
146 |
def infer(p):
|