Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -60,10 +60,10 @@ with gr.Blocks() as demo:
|
|
| 60 |
output = [gr.Image(label = m) for m in default_models]
|
| 61 |
model_choice.change(update_imgbox, model_choice, output)
|
| 62 |
|
| 63 |
-
for o in output:
|
| 64 |
-
|
| 65 |
|
| 66 |
-
|
| 67 |
|
| 68 |
'''
|
| 69 |
output = gr.Gallery()
|
|
|
|
| 60 |
output = [gr.Image(label = m) for m in default_models]
|
| 61 |
model_choice.change(update_imgbox, model_choice, output)
|
| 62 |
|
| 63 |
+
#for o in output:
|
| 64 |
+
# gen_button.click(lambda t: gen_fn(o.label, t), txt_input, o)
|
| 65 |
|
| 66 |
+
gen_button.click(gen_fn2, [model_choice, txt_input], output, batch = True, max_batch_size = num_models)
|
| 67 |
|
| 68 |
'''
|
| 69 |
output = gr.Gallery()
|