Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -193,7 +193,7 @@ with gr.Blocks(theme=gr.themes.Soft(),css=css,js=js) as demo:
|
|
193 |
def ret(idx):
|
194 |
result[idx] = infer(prompt,prompt2)
|
195 |
def rets():
|
196 |
-
Pool().map(ret,[range(12)])
|
197 |
run_button.click(rets)
|
198 |
|
199 |
demo.queue().launch()
|
|
|
193 |
def ret(idx):
|
194 |
result[idx] = infer(prompt,prompt2)
|
195 |
def rets():
|
196 |
+
Pool().map(ret,[[i] for i in range(12)])
|
197 |
run_button.click(rets)
|
198 |
|
199 |
demo.queue().launch()
|