Update app.py
Browse files
app.py
CHANGED
@@ -43,10 +43,7 @@ def gen_fn(model_str, prompt):
|
|
43 |
|
44 |
|
45 |
with gr.Blocks() as demo:
|
46 |
-
with gr.Tab('
|
47 |
-
with gr.Accordion('Model selection'):
|
48 |
-
model_choice = gr.CheckboxGroup(models, label = f'Choose up to {num_models} different models', value = default_models, multiselect = True, max_choices = num_models, interactive = True, filterable = False)
|
49 |
-
|
50 |
txt_input = gr.Textbox(label = 'Prompt text')
|
51 |
gen_button = gr.Button('Generate')
|
52 |
stop_button = gr.Button('Stop', variant = 'secondary', interactive = False)
|
@@ -62,6 +59,8 @@ with gr.Blocks() as demo:
|
|
62 |
for m, o in zip(current_models, output):
|
63 |
gen_event = gen_button.click(gen_fn, [m, txt_input], o)
|
64 |
stop_button.click(lambda s: gr.update(interactive = False), None, stop_button, cancels = [gen_event])
|
|
|
|
|
65 |
|
66 |
demo.queue(concurrency_count = 200)
|
67 |
demo.launch()
|
|
|
43 |
|
44 |
|
45 |
with gr.Blocks() as demo:
|
46 |
+
with gr.Tab('The Dream'):
|
|
|
|
|
|
|
47 |
txt_input = gr.Textbox(label = 'Prompt text')
|
48 |
gen_button = gr.Button('Generate')
|
49 |
stop_button = gr.Button('Stop', variant = 'secondary', interactive = False)
|
|
|
59 |
for m, o in zip(current_models, output):
|
60 |
gen_event = gen_button.click(gen_fn, [m, txt_input], o)
|
61 |
stop_button.click(lambda s: gr.update(interactive = False), None, stop_button, cancels = [gen_event])
|
62 |
+
with gr.Accordion('Model selection'):
|
63 |
+
model_choice = gr.CheckboxGroup(models, label = f'Choose up to {num_models} different models', value = default_models, multiselect = True, max_choices = num_models, interactive = True, filterable = False)
|
64 |
|
65 |
demo.queue(concurrency_count = 200)
|
66 |
demo.launch()
|