Yaron Koresh commited on
Commit
a895600
·
verified ·
1 Parent(s): 019b2bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 ).get()
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()