Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -117,7 +117,7 @@ def add_gallery(image, model_str, gallery):
|
|
117 |
CSS="""
|
118 |
.gradio-container { max-width: 1200px; margin: 0 auto; !important; }
|
119 |
.output { width=112px; height=112px; max_width=112px; max_height=112px; !important; }
|
120 |
-
.gallery { min_width=512px; min_height=512px; max_height=
|
121 |
.guide { text-align: center; !important; }
|
122 |
"""
|
123 |
|
@@ -141,8 +141,8 @@ with gr.Blocks(theme='NoCrypt/miku@>=1.2.2', fill_width=True, css=CSS) as demo:
|
|
141 |
seed_rand = gr.Button("Randomize Seed 🎲", size="sm", variant="secondary")
|
142 |
seed_rand.click(randomize_seed, None, [seed], queue=False)
|
143 |
with gr.Row():
|
144 |
-
gen_button = gr.Button(f'Generate up to {int(num_models)}
|
145 |
-
random_button = gr.Button(f'
|
146 |
#stop_button = gr.Button('Stop', variant='stop', interactive=False, scale=1)
|
147 |
#gen_button.click(lambda: gr.update(interactive=True), None, stop_button)
|
148 |
gr.Markdown("")
|
@@ -219,5 +219,7 @@ with gr.Blocks(theme='NoCrypt/miku@>=1.2.2', fill_width=True, css=CSS) as demo:
|
|
219 |
o.change(add_gallery, [o, model_choice2, gallery2], [gallery2])
|
220 |
#stop_button2.click(lambda: gr.update(interactive=False), None, stop_button2, cancels=[gen_event2])
|
221 |
|
|
|
|
|
222 |
#demo.queue(default_concurrency_limit=200, max_size=200)
|
223 |
demo.launch(show_api=False, max_threads=400)
|
|
|
117 |
CSS="""
|
118 |
.gradio-container { max-width: 1200px; margin: 0 auto; !important; }
|
119 |
.output { width=112px; height=112px; max_width=112px; max_height=112px; !important; }
|
120 |
+
.gallery { min_width=512px; min_height=512px; max_height=1024px; !important; }
|
121 |
.guide { text-align: center; !important; }
|
122 |
"""
|
123 |
|
|
|
141 |
seed_rand = gr.Button("Randomize Seed 🎲", size="sm", variant="secondary")
|
142 |
seed_rand.click(randomize_seed, None, [seed], queue=False)
|
143 |
with gr.Row():
|
144 |
+
gen_button = gr.Button(f'Generate up to {int(num_models)}', variant='primary', scale=3)
|
145 |
+
random_button = gr.Button(f'Randomize Models', variant='secondary', scale=1)
|
146 |
#stop_button = gr.Button('Stop', variant='stop', interactive=False, scale=1)
|
147 |
#gen_button.click(lambda: gr.update(interactive=True), None, stop_button)
|
148 |
gr.Markdown("")
|
|
|
219 |
o.change(add_gallery, [o, model_choice2, gallery2], [gallery2])
|
220 |
#stop_button2.click(lambda: gr.update(interactive=False), None, stop_button2, cancels=[gen_event2])
|
221 |
|
222 |
+
gr.Markdown("<hr/>")
|
223 |
+
|
224 |
#demo.queue(default_concurrency_limit=200, max_size=200)
|
225 |
demo.launch(show_api=False, max_threads=400)
|