Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -198,7 +198,7 @@ with gr.Blocks(theme=gr.themes.Soft(),css=css,js=js) as demo:
|
|
198 |
def _rets(p1,p2):
|
199 |
ln = len(result)
|
200 |
idxs = [ [idx,p1,p2] for idx in list(range(ln)) ]
|
201 |
-
return Pool(ln).imap( _ret, idxs )
|
202 |
run_button.click(fn=_rets,inputs=[prompt,prompt2],outputs=result)
|
203 |
|
204 |
demo.queue().launch()
|
|
|
198 |
def _rets(p1,p2):
|
199 |
ln = len(result)
|
200 |
idxs = [ [idx,p1,p2] for idx in list(range(ln)) ]
|
201 |
+
return list(Pool(ln).imap( _ret, idxs ))
|
202 |
run_button.click(fn=_rets,inputs=[prompt,prompt2],outputs=result)
|
203 |
|
204 |
demo.queue().launch()
|