RdnUser77 commited on
Commit
d1e0334
1 Parent(s): f24ac91

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -58,13 +58,13 @@ with gr.Blocks() as demo:
58
 
59
  with gr.Row():
60
  output = [gr.Image(label = m) for m in default_models]
61
- current_models = default_models
62
 
63
  model_choice.change(update_imgbox, model_choice, output)
64
- model_choice.change(extend_choices, model_choice, current_models, preprocess = False, postprocess = False)
65
 
66
  for m, o in zip(current_models, output):
67
- gen_button.click(lambda txt: gen_fn(m, txt), txt_input, o)
68
 
69
  #gen_button.click(gen_fn2, [model_choice, txt_input], output, batch = True, max_batch_size = num_models)
70
 
 
58
 
59
  with gr.Row():
60
  output = [gr.Image(label = m) for m in default_models]
61
+ current_models = [gr.Textbox(m) for m in default_models]
62
 
63
  model_choice.change(update_imgbox, model_choice, output)
64
+ model_choice.change(extend_choices, model_choice, current_models)
65
 
66
  for m, o in zip(current_models, output):
67
+ gen_button.click(gen_fn, [m, txt_input], o)
68
 
69
  #gen_button.click(gen_fn2, [model_choice, txt_input], output, batch = True, max_batch_size = num_models)
70