DemiPoto commited on
Commit
1871b0f
1 Parent(s): 25ced86

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -83,19 +83,16 @@ def make_me():
83
  </div>
84
  """)
85
  with gr.Row():
86
- output = [gr.Image(label=m, min_width=170, height=170) for m in default_models]
87
- current_models = [gr.Textbox(m, visible=False) for m in default_models]
88
 
89
  choices=models_test[0]
90
- output=update_imgbox(choices)
91
- current_models=extend_choices(choices)
92
 
93
  for m, o in zip(current_models, output):
94
  gen_event = gen_button.click(gen_fn, [m, txt_input], o)
95
  stop_button.click(lambda s: gr.update(interactive=False), None, stop_button, cancels=[gen_event])
96
- choices=models_test[0]
97
- output=update_imgbox(choices)
98
- current_models=extend_choices(choices)
99
  """with gr.Accordion('Model selection'):
100
  model_choice = gr.CheckboxGroup(models, label=f' {num_models} different models selected', value=default_models, multiselect=True, max_choices=num_models, interactive=True, filterable=False)
101
  model_choice.change(update_imgbox, model_choice, output)
 
83
  </div>
84
  """)
85
  with gr.Row():
86
+ """output = [gr.Image(label=m, min_width=170, height=170) for m in default_models]
87
+ current_models = [gr.Textbox(m, visible=False) for m in default_models]"""
88
 
89
  choices=models_test[0]
90
+ output = [gr.Image(label=m, min_width=170, height=170) for m in choices]
91
+ current_models = [gr.Textbox(m, visible=False) for m in choices]
92
 
93
  for m, o in zip(current_models, output):
94
  gen_event = gen_button.click(gen_fn, [m, txt_input], o)
95
  stop_button.click(lambda s: gr.update(interactive=False), None, stop_button, cancels=[gen_event])
 
 
 
96
  """with gr.Accordion('Model selection'):
97
  model_choice = gr.CheckboxGroup(models, label=f' {num_models} different models selected', value=default_models, multiselect=True, max_choices=num_models, interactive=True, filterable=False)
98
  model_choice.change(update_imgbox, model_choice, output)