Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -235,7 +235,7 @@ with gr.Blocks(theme=gr.themes.Soft(),css=css,js=js) as demo:
|
|
235 |
p1s = [p1_en for _ in rng]
|
236 |
p2s = [p2_en for _ in rng]
|
237 |
pool = Pool(processes=ln)
|
238 |
-
lst = list( pool.
|
239 |
pool.clear()
|
240 |
return lst
|
241 |
|
|
|
235 |
p1s = [p1_en for _ in rng]
|
236 |
p2s = [p2_en for _ in rng]
|
237 |
pool = Pool(processes=ln)
|
238 |
+
lst = list( pool.map( _ret, p1s, p2s ) )
|
239 |
pool.clear()
|
240 |
return lst
|
241 |
|