Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -139,16 +139,11 @@ with gr.Blocks(fill_width=True) as demo:
|
|
139 |
visible=True) for m in default_models]
|
140 |
current_models = [gr.Textbox(m, visible=False) for m in default_models]
|
141 |
|
142 |
-
with gr.Column(scale=2):
|
143 |
-
gallery = gr.Gallery(label="Output", show_download_button=True,
|
144 |
-
interactive=False, show_share_button=False, container=True, format="png",
|
145 |
-
preview=True, object_fit="cover", columns=2, rows=2)
|
146 |
-
|
147 |
for m, o in zip(current_models, output):
|
148 |
gen_event = gr.on(triggers=[gen_button.click, txt_input.submit], fn=gen_fn,
|
149 |
inputs=[m, txt_input, neg_input, height, width, steps, cfg, seed], outputs=[o],
|
150 |
concurrency_limit=None, queue=False)
|
151 |
-
|
152 |
|
153 |
with gr.Column(scale=4):
|
154 |
with gr.Accordion('Model selection'):
|
|
|
139 |
visible=True) for m in default_models]
|
140 |
current_models = [gr.Textbox(m, visible=False) for m in default_models]
|
141 |
|
|
|
|
|
|
|
|
|
|
|
142 |
for m, o in zip(current_models, output):
|
143 |
gen_event = gr.on(triggers=[gen_button.click, txt_input.submit], fn=gen_fn,
|
144 |
inputs=[m, txt_input, neg_input, height, width, steps, cfg, seed], outputs=[o],
|
145 |
concurrency_limit=None, queue=False)
|
146 |
+
|
147 |
|
148 |
with gr.Column(scale=4):
|
149 |
with gr.Accordion('Model selection'):
|