RdnUser77 commited on
Commit
ee5e4be
1 Parent(s): 80c5b46

Update app.py

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