DemiPoto commited on
Commit
b26345f
1 Parent(s): 80dc43c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -179,6 +179,11 @@ def make_me():
179
  output = update_imgbox([choices[0]])
180
  current_models = extend_choices_b([choices[0]])
181
 
 
 
 
 
 
182
  for m, o in zip(current_models, output):
183
  gen_event = gen_button.click(gen_fn, [m, txt_input], o)
184
  stop_button.click(lambda s: gr.update(interactive=False), None, stop_button, cancels=[gen_event])
@@ -188,10 +193,6 @@ def make_me():
188
  model_choice.change(update_imgbox, (gen_button,stop_button,group_model_choice), output)
189
  model_choice.change(extend_choices, model_choice, current_models)
190
  """
191
- with gr.Row():
192
- gallery = gr.Gallery(label="Output", show_download_button=True, elem_classes="gallery",
193
- interactive=False, show_share_button=True, container=True, format="png",
194
- preview=True, object_fit="cover", columns=2, rows=2)
195
 
196
  with gr.Accordion("test", open=True):
197
  """group_model_choice = gr.Dropdown(label="test Model", show_label=False, choices=list(models_test) , allow_custom_value=True)"""
 
179
  output = update_imgbox([choices[0]])
180
  current_models = extend_choices_b([choices[0]])
181
 
182
+ with gr.Row():
183
+ gallery = gr.Gallery(label="Output", show_download_button=True, elem_classes="gallery",
184
+ interactive=False, show_share_button=True, container=True, format="png",
185
+ preview=True, object_fit="cover", columns=2, rows=2)
186
+
187
  for m, o in zip(current_models, output):
188
  gen_event = gen_button.click(gen_fn, [m, txt_input], o)
189
  stop_button.click(lambda s: gr.update(interactive=False), None, stop_button, cancels=[gen_event])
 
193
  model_choice.change(update_imgbox, (gen_button,stop_button,group_model_choice), output)
194
  model_choice.change(extend_choices, model_choice, current_models)
195
  """
 
 
 
 
196
 
197
  with gr.Accordion("test", open=True):
198
  """group_model_choice = gr.Dropdown(label="test Model", show_label=False, choices=list(models_test) , allow_custom_value=True)"""