Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -51,8 +51,7 @@ with gr.Blocks() as demo:
|
|
51 |
gen_button = gr.Button('Generate')
|
52 |
|
53 |
with gr.Row():
|
54 |
-
output = [gr.Image(label = m) for m in default_models]
|
55 |
-
current_models = [gr.Textbox(m) for m in default_models]
|
56 |
|
57 |
model_choice.change(update_imgbox, model_choice, output)
|
58 |
model_choice.change(extend_choices, model_choice, current_models)
|
|
|
51 |
gen_button = gr.Button('Generate')
|
52 |
|
53 |
with gr.Row():
|
54 |
+
output, current_models = unzip([gr.Image(label = m), gr.Textbox(m, visible = False) for m in default_models]]
|
|
|
55 |
|
56 |
model_choice.change(update_imgbox, model_choice, output)
|
57 |
model_choice.change(extend_choices, model_choice, current_models)
|