Spaces:
Running
Running
charliebaby2023
commited on
Commit
•
bb69629
1
Parent(s):
c905cd4
Update app.py
Browse files
app.py
CHANGED
@@ -62,8 +62,7 @@ def make_me():
|
|
62 |
output = [gr.Image(label=m, min_width=200) for m in default_models]
|
63 |
current_models = [gr.Textbox(m, visible=True) for m in default_models]
|
64 |
for m, o in zip(current_models, output):
|
65 |
-
|
66 |
-
gen_event = gen_button.click( [m, txt_input], o)
|
67 |
stop_button.click(lambda s: gr.update(interactive=False), None, stop_button, cancels=[gen_event])
|
68 |
with gr.Accordion('Model selection'):
|
69 |
model_choice = gr.CheckboxGroup(models, label=f'Choose up to {num_models} different models from the 800 available!', value=default_models, multiselect=True, max_choices=num_models, interactive=True, filterable=False)
|
|
|
62 |
output = [gr.Image(label=m, min_width=200) for m in default_models]
|
63 |
current_models = [gr.Textbox(m, visible=True) for m in default_models]
|
64 |
for m, o in zip(current_models, output):
|
65 |
+
gen_event = gen_button.click(gen_fn, [m, txt_input], o)
|
|
|
66 |
stop_button.click(lambda s: gr.update(interactive=False), None, stop_button, cancels=[gen_event])
|
67 |
with gr.Accordion('Model selection'):
|
68 |
model_choice = gr.CheckboxGroup(models, label=f'Choose up to {num_models} different models from the 800 available!', value=default_models, multiselect=True, max_choices=num_models, interactive=True, filterable=False)
|