Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -179,15 +179,15 @@ def make_me():
|
|
179 |
output = update_imgbox([choices[0]])
|
180 |
current_models = extend_choices_b([choices[0]])
|
181 |
|
182 |
-
with gr.Row():
|
183 |
-
|
184 |
-
|
185 |
-
|
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])
|
190 |
-
o.change(add_gallery, [o, m, gallery], [gallery])
|
191 |
"""with gr.Accordion('Model selection'):
|
192 |
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)
|
193 |
model_choice.change(update_imgbox, (gen_button,stop_button,group_model_choice), output)
|
|
|
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])
|
190 |
+
#o.change(add_gallery, [o, m, gallery], [gallery])
|
191 |
"""with gr.Accordion('Model selection'):
|
192 |
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)
|
193 |
model_choice.change(update_imgbox, (gen_button,stop_button,group_model_choice), output)
|