Spaces:
Sleeping
Sleeping
Upload 2 files
Browse files
app.py
CHANGED
@@ -46,11 +46,11 @@ with gr.Blocks(theme="NoCrypt/miku@>=1.2.2", fill_width=True, css=css) as demo:
|
|
46 |
neg_prompt = gr.Text(label="Negative Prompt", lines=1, max_lines=8, placeholder="")
|
47 |
with gr.Accordion("Advanced options", open=False):
|
48 |
with gr.Row():
|
49 |
-
width = gr.
|
50 |
-
height = gr.
|
51 |
with gr.Row():
|
52 |
-
steps = gr.
|
53 |
-
cfg = gr.
|
54 |
seed = gr.Slider(label="Seed", info="Randomize Seed if -1.", minimum=-1, maximum=MAX_SEED, step=1, value=-1)
|
55 |
with gr.Accordion("Recommended Prompt", open=False):
|
56 |
recom_prompt_preset = gr.Radio(label="Set Presets", choices=get_recom_prompt_type(), value="Common")
|
@@ -148,5 +148,5 @@ with gr.Blocks(theme="NoCrypt/miku@>=1.2.2", fill_width=True, css=css) as demo:
|
|
148 |
).success(insert_recom_prompt, [prompt, neg_prompt, tagger_recom_prompt], [prompt, neg_prompt], queue=False, show_api=False,
|
149 |
).success(compose_prompt_to_copy, [v2_character, v2_series, prompt], [prompt], queue=False, show_api=False)
|
150 |
|
151 |
-
demo.queue()
|
152 |
-
demo.launch()
|
|
|
46 |
neg_prompt = gr.Text(label="Negative Prompt", lines=1, max_lines=8, placeholder="")
|
47 |
with gr.Accordion("Advanced options", open=False):
|
48 |
with gr.Row():
|
49 |
+
width = gr.Slider(label="Width", info="If 0, the default value is used.", maximum=1216, step=32, value=0)
|
50 |
+
height = gr.Slider(label="Height", info="If 0, the default value is used.", maximum=1216, step=32, value=0)
|
51 |
with gr.Row():
|
52 |
+
steps = gr.Slider(label="Number of inference steps", info="If 0, the default value is used.", maximum=100, step=1, value=0)
|
53 |
+
cfg = gr.Slider(label="Guidance scale", info="If 0, the default value is used.", maximum=30.0, step=0.1, value=0)
|
54 |
seed = gr.Slider(label="Seed", info="Randomize Seed if -1.", minimum=-1, maximum=MAX_SEED, step=1, value=-1)
|
55 |
with gr.Accordion("Recommended Prompt", open=False):
|
56 |
recom_prompt_preset = gr.Radio(label="Set Presets", choices=get_recom_prompt_type(), value="Common")
|
|
|
148 |
).success(insert_recom_prompt, [prompt, neg_prompt, tagger_recom_prompt], [prompt, neg_prompt], queue=False, show_api=False,
|
149 |
).success(compose_prompt_to_copy, [v2_character, v2_series, prompt], [prompt], queue=False, show_api=False)
|
150 |
|
151 |
+
demo.queue(default_concurrency_limit=200, max_size=200)
|
152 |
+
demo.launch(max_threads=400)
|
model.py
CHANGED
@@ -16,8 +16,8 @@ models = [
|
|
16 |
'Meina/MeinaMix_V11',
|
17 |
'KBlueLeaf/Kohaku-XL-Epsilon-rev3',
|
18 |
'KBlueLeaf/Kohaku-XL-Zeta',
|
19 |
-
'kayfahaarukku/UrangDiffusion-1.
|
20 |
-
'Eugeoter/artiwaifu-diffusion-
|
21 |
'Raelina/Rae-Diffusion-XL-V2',
|
22 |
'Raelina/Raemu-XL-V4',
|
23 |
]
|
|
|
16 |
'Meina/MeinaMix_V11',
|
17 |
'KBlueLeaf/Kohaku-XL-Epsilon-rev3',
|
18 |
'KBlueLeaf/Kohaku-XL-Zeta',
|
19 |
+
'kayfahaarukku/UrangDiffusion-1.3',
|
20 |
+
'Eugeoter/artiwaifu-diffusion-2.0',
|
21 |
'Raelina/Rae-Diffusion-XL-V2',
|
22 |
'Raelina/Raemu-XL-V4',
|
23 |
]
|