Update app.py
Browse files
app.py
CHANGED
@@ -85,6 +85,11 @@ def make_me():
|
|
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 |
for m, o in zip(current_models, output):
|
89 |
gen_event = gen_button.click(gen_fn, [m, txt_input], o)
|
90 |
stop_button.click(lambda s: gr.update(interactive=False), None, stop_button, cancels=[gen_event])
|
|
|
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])
|