Spaces:
Sleeping
Sleeping
Rename app.py to app_test.py
Browse files- app.py → app_test.py +6 -3
app.py → app_test.py
RENAMED
@@ -58,12 +58,15 @@ with gr.Blocks() as demo:
|
|
58 |
|
59 |
with gr.Row():
|
60 |
output = [gr.Image(label = m) for m in default_models]
|
|
|
|
|
61 |
model_choice.change(update_imgbox, model_choice, output)
|
|
|
62 |
|
63 |
-
|
64 |
-
|
65 |
|
66 |
-
gen_button.click(gen_fn2, [model_choice, txt_input], output, batch = True, max_batch_size = num_models)
|
67 |
|
68 |
'''
|
69 |
output = gr.Gallery()
|
|
|
58 |
|
59 |
with gr.Row():
|
60 |
output = [gr.Image(label = m) for m in default_models]
|
61 |
+
current_models = default_models
|
62 |
+
|
63 |
model_choice.change(update_imgbox, model_choice, output)
|
64 |
+
model_choice.change(extend_choices, model_choice, current_models, preprocess = False, postprocess = False)
|
65 |
|
66 |
+
for m, o in zip(current_models, output):
|
67 |
+
gen_button.click(lambda txt: gen_fn(m, txt), txt_input, o)
|
68 |
|
69 |
+
#gen_button.click(gen_fn2, [model_choice, txt_input], output, batch = True, max_batch_size = num_models)
|
70 |
|
71 |
'''
|
72 |
output = gr.Gallery()
|