Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def load_fn(models):
|
|
20 |
load_fn(models)
|
21 |
|
22 |
|
23 |
-
num_models =
|
24 |
default_models = models[:num_models]
|
25 |
|
26 |
|
@@ -51,7 +51,7 @@ with gr.Blocks() as demo:
|
|
51 |
gen_button = gr.Button('Generate')
|
52 |
|
53 |
with gr.Row():
|
54 |
-
output, current_models =
|
55 |
|
56 |
model_choice.change(update_imgbox, model_choice, output)
|
57 |
model_choice.change(extend_choices, model_choice, current_models)
|
|
|
20 |
load_fn(models)
|
21 |
|
22 |
|
23 |
+
num_models = 6
|
24 |
default_models = models[:num_models]
|
25 |
|
26 |
|
|
|
51 |
gen_button = gr.Button('Generate')
|
52 |
|
53 |
with gr.Row():
|
54 |
+
output, current_models = list(zip(*[[gr.Image(label = m), gr.Textbox(m, visible = True)] 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)
|