Spaces:
Paused
Paused
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -138,7 +138,7 @@ pipe_flux = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_d
|
|
| 138 |
|
| 139 |
def parallel(workers,func,*args):
|
| 140 |
with ProcessPoolExecutor(workers) as ex:
|
| 141 |
-
res = ex.map(func,
|
| 142 |
return list(res)
|
| 143 |
|
| 144 |
# functionality
|
|
|
|
| 138 |
|
| 139 |
def parallel(workers,func,*args):
|
| 140 |
with ProcessPoolExecutor(workers) as ex:
|
| 141 |
+
res = ex.map(func, args)
|
| 142 |
return list(res)
|
| 143 |
|
| 144 |
# functionality
|