Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -124,7 +124,7 @@ CSS="""
|
|
124 |
|
125 |
with gr.Blocks(theme='NoCrypt/miku@>=1.2.2', fill_width=True, css=CSS) as demo:
|
126 |
# with gr.Blocks(theme='JohnSmith9982/small_and_pretty', fill_width=True, css=CSS) as demo:
|
127 |
-
gr.HTML()
|
128 |
with gr.Tab('6 Models'):
|
129 |
with gr.Column(scale=2):
|
130 |
with gr.Group():
|
@@ -141,11 +141,11 @@ 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)}', 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("")
|
149 |
|
150 |
with gr.Column(scale=1):
|
151 |
with gr.Group():
|
@@ -179,7 +179,7 @@ with gr.Blocks(theme='NoCrypt/miku@>=1.2.2', fill_width=True, css=CSS) as demo:
|
|
179 |
model_choice2 = gr.Dropdown(models, label='Choose model', value=models[0])
|
180 |
with gr.Group():
|
181 |
txt_input2 = gr.Textbox(label='Your prompt:', lines=4)
|
182 |
-
neg_input2 = gr.Textbox(label='Negative prompt:', lines=1)
|
183 |
with gr.Accordion("Advanced", open=False, visible=True):
|
184 |
with gr.Row():
|
185 |
width2 = gr.Slider(label="Width", info="If 0, the default value is used.", maximum=1216, step=32, value=0)
|
@@ -219,7 +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 |
-
gr.Markdown("
|
223 |
|
224 |
#demo.queue(default_concurrency_limit=200, max_size=200)
|
225 |
demo.launch(show_api=False, max_threads=400)
|
|
|
124 |
|
125 |
with gr.Blocks(theme='NoCrypt/miku@>=1.2.2', fill_width=True, css=CSS) as demo:
|
126 |
# with gr.Blocks(theme='JohnSmith9982/small_and_pretty', fill_width=True, css=CSS) as demo:
|
127 |
+
gr.HTML("")
|
128 |
with gr.Tab('6 Models'):
|
129 |
with gr.Column(scale=2):
|
130 |
with gr.Group():
|
|
|
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)} images', 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("", elem_classes="guide")
|
149 |
|
150 |
with gr.Column(scale=1):
|
151 |
with gr.Group():
|
|
|
179 |
model_choice2 = gr.Dropdown(models, label='Choose model', value=models[0])
|
180 |
with gr.Group():
|
181 |
txt_input2 = gr.Textbox(label='Your prompt:', lines=4)
|
182 |
+
neg_input2 = gr.Textbox(label='Negative prompt:', value="[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry, text, fuzziness", lines=1)
|
183 |
with gr.Accordion("Advanced", open=False, visible=True):
|
184 |
with gr.Row():
|
185 |
width2 = gr.Slider(label="Width", info="If 0, the default value is used.", maximum=1216, step=32, value=0)
|
|
|
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("")
|
223 |
|
224 |
#demo.queue(default_concurrency_limit=200, max_size=200)
|
225 |
demo.launch(show_api=False, max_threads=400)
|