Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ def gen_fn(model_str, prompt):
|
|
45 |
with gr.Blocks() as demo:
|
46 |
with gr.Tab('The Dream'):
|
47 |
txt_input = gr.Textbox(label = 'Your prompt:', lines=4).style(container=False,min_width=1200)
|
48 |
-
gen_button = gr.Button('Generate up to 6 images in up to
|
49 |
stop_button = gr.Button('Stop', variant = 'secondary', interactive = False)
|
50 |
gen_button.click(lambda s: gr.update(interactive = True), None, stop_button)
|
51 |
gr.HTML(
|
@@ -68,15 +68,14 @@ with gr.Blocks() as demo:
|
|
68 |
gen_event = gen_button.click(gen_fn, [m, txt_input], o)
|
69 |
stop_button.click(lambda s: gr.update(interactive = False), None, stop_button, cancels = [gen_event])
|
70 |
with gr.Accordion('Model selection'):
|
71 |
-
model_choice = gr.CheckboxGroup(models, label = f'Choose up to {num_models} different models from the
|
72 |
model_choice.change(update_imgbox, model_choice, output)
|
73 |
model_choice.change(extend_choices, model_choice, current_models)
|
74 |
with gr.Row():
|
75 |
gr.HTML(
|
76 |
"""
|
77 |
<div class="footer">
|
78 |
-
<p>
|
79 |
-
</p>
|
80 |
"""
|
81 |
)
|
82 |
|
|
|
45 |
with gr.Blocks() as demo:
|
46 |
with gr.Tab('The Dream'):
|
47 |
txt_input = gr.Textbox(label = 'Your prompt:', lines=4).style(container=False,min_width=1200)
|
48 |
+
gen_button = gr.Button('Generate up to 6 images in up to 1 minutes total')
|
49 |
stop_button = gr.Button('Stop', variant = 'secondary', interactive = False)
|
50 |
gen_button.click(lambda s: gr.update(interactive = True), None, stop_button)
|
51 |
gr.HTML(
|
|
|
68 |
gen_event = gen_button.click(gen_fn, [m, txt_input], o)
|
69 |
stop_button.click(lambda s: gr.update(interactive = False), None, stop_button, cancels = [gen_event])
|
70 |
with gr.Accordion('Model selection'):
|
71 |
+
model_choice = gr.CheckboxGroup(models, label = f'Choose up to {num_models} different models from the best available!', value = default_models, multiselect = True, max_choices = num_models, interactive = True, filterable = False)
|
72 |
model_choice.change(update_imgbox, model_choice, output)
|
73 |
model_choice.change(extend_choices, model_choice, current_models)
|
74 |
with gr.Row():
|
75 |
gr.HTML(
|
76 |
"""
|
77 |
<div class="footer">
|
78 |
+
<p> </p>
|
|
|
79 |
"""
|
80 |
)
|
81 |
|