Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -58,13 +58,13 @@ with gr.Blocks() as demo:
|
|
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
|
65 |
|
66 |
for m, o in zip(current_models, output):
|
67 |
-
gen_button.click(
|
68 |
|
69 |
#gen_button.click(gen_fn2, [model_choice, txt_input], output, batch = True, max_batch_size = num_models)
|
70 |
|
|
|
58 |
|
59 |
with gr.Row():
|
60 |
output = [gr.Image(label = m) for m in default_models]
|
61 |
+
current_models = [gr.Textbox(m) for m in default_models]
|
62 |
|
63 |
model_choice.change(update_imgbox, model_choice, output)
|
64 |
+
model_choice.change(extend_choices, model_choice, current_models)
|
65 |
|
66 |
for m, o in zip(current_models, output):
|
67 |
+
gen_button.click(gen_fn, [m, txt_input], o)
|
68 |
|
69 |
#gen_button.click(gen_fn2, [model_choice, txt_input], output, batch = True, max_batch_size = num_models)
|
70 |
|