Spaces:
Running
Running
charliebaby2023
commited on
Commit
•
8831d66
1
Parent(s):
1c5a50a
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def gen_fn(model_str, prompt):
|
|
46 |
def make_me():
|
47 |
# with gr.Tab('The Dream'):
|
48 |
with gr.Row():
|
49 |
-
txt_input = gr.Textbox(lines=2, value=kii, width=300)
|
50 |
#txt_input = gr.Textbox(label='Your prompt:', lines=2, value=kii)
|
51 |
|
52 |
gen_button = gr.Button('Generate images', width=150, height=30)
|
@@ -65,7 +65,7 @@ def make_me():
|
|
65 |
gen_event = gen_button.click(gen_fn, [m, txt_input], o)
|
66 |
stop_button.click(lambda s: gr.update(interactive=False), None, stop_button, cancels=[gen_event])
|
67 |
with gr.Accordion('Model selection'):
|
68 |
-
model_choice = gr.CheckboxGroup(models, label=f'
|
69 |
model_choice.change(update_imgbox, model_choice, output)
|
70 |
model_choice.change(extend_choices, model_choice, current_models)
|
71 |
with gr.Row():
|
@@ -78,10 +78,10 @@ def make_me():
|
|
78 |
|
79 |
|
80 |
js_code = """
|
81 |
-
|
82 |
|
83 |
-
console.log('ghgh')
|
84 |
-
|
85 |
"""
|
86 |
|
87 |
|
|
|
46 |
def make_me():
|
47 |
# with gr.Tab('The Dream'):
|
48 |
with gr.Row():
|
49 |
+
txt_input = gr.Textbox(lines=2, value=kii, width=300, max-height=100)
|
50 |
#txt_input = gr.Textbox(label='Your prompt:', lines=2, value=kii)
|
51 |
|
52 |
gen_button = gr.Button('Generate images', width=150, height=30)
|
|
|
65 |
gen_event = gen_button.click(gen_fn, [m, txt_input], o)
|
66 |
stop_button.click(lambda s: gr.update(interactive=False), None, stop_button, cancels=[gen_event])
|
67 |
with gr.Accordion('Model selection'):
|
68 |
+
model_choice = gr.CheckboxGroup(models, label=f' {num_models} different models selected', value=default_models, multiselect=True, max_choices=num_models, interactive=True, filterable=False)
|
69 |
model_choice.change(update_imgbox, model_choice, output)
|
70 |
model_choice.change(extend_choices, model_choice, current_models)
|
71 |
with gr.Row():
|
|
|
78 |
|
79 |
|
80 |
js_code = """
|
81 |
+
|
82 |
|
83 |
+
console.log('ghgh');
|
84 |
+
|
85 |
"""
|
86 |
|
87 |
|