John6666 commited on
Commit
028dee3
β€’
1 Parent(s): b233ebf

Upload 2 files

Browse files
Files changed (2) hide show
  1. app.py +6 -6
  2. model.py +2 -2
app.py CHANGED
@@ -26,11 +26,11 @@ with gr.Blocks(theme="NoCrypt/miku@>=1.2.2", fill_width=True, css=css) as demo:
26
  neg_prompt = gr.Text(label="Negative Prompt", lines=1, max_lines=8, placeholder="")
27
  with gr.Accordion("Advanced options", open=False):
28
  with gr.Row():
29
- width = gr.Number(label="Width", info="If 0, the default value is used.", maximum=1216, step=32, value=0)
30
- height = gr.Number(label="Height", info="If 0, the default value is used.", maximum=1216, step=32, value=0)
31
  with gr.Row():
32
- steps = gr.Number(label="Number of inference steps", info="If 0, the default value is used.", maximum=100, step=1, value=0)
33
- cfg = gr.Number(label="Guidance scale", info="If 0, the default value is used.", maximum=30.0, step=0.1, value=0)
34
  seed = gr.Slider(label="Seed", info="Randomize Seed if -1.", minimum=-1, maximum=MAX_SEED, step=1, value=-1)
35
  with gr.Accordion("Recommended Prompt", open=False):
36
  recom_prompt_preset = gr.Radio(label="Set Presets", choices=get_recom_prompt_type(), value="Common")
@@ -100,5 +100,5 @@ with gr.Blocks(theme="NoCrypt/miku@>=1.2.2", fill_width=True, css=css) as demo:
100
  recom_prompt_preset.change(set_recom_prompt_preset, [recom_prompt_preset],
101
  [positive_prefix, positive_suffix, negative_prefix, negative_suffix], queue=False, show_api=False)
102
 
103
- demo.queue()
104
- demo.launch()
 
26
  neg_prompt = gr.Text(label="Negative Prompt", lines=1, max_lines=8, placeholder="")
27
  with gr.Accordion("Advanced options", open=False):
28
  with gr.Row():
29
+ width = gr.Slider(label="Width", info="If 0, the default value is used.", maximum=1216, step=32, value=0)
30
+ height = gr.Slider(label="Height", info="If 0, the default value is used.", maximum=1216, step=32, value=0)
31
  with gr.Row():
32
+ steps = gr.Slider(label="Number of inference steps", info="If 0, the default value is used.", maximum=100, step=1, value=0)
33
+ cfg = gr.Slider(label="Guidance scale", info="If 0, the default value is used.", maximum=30.0, step=0.1, value=0)
34
  seed = gr.Slider(label="Seed", info="Randomize Seed if -1.", minimum=-1, maximum=MAX_SEED, step=1, value=-1)
35
  with gr.Accordion("Recommended Prompt", open=False):
36
  recom_prompt_preset = gr.Radio(label="Set Presets", choices=get_recom_prompt_type(), value="Common")
 
100
  recom_prompt_preset.change(set_recom_prompt_preset, [recom_prompt_preset],
101
  [positive_prefix, positive_suffix, negative_prefix, negative_suffix], queue=False, show_api=False)
102
 
103
+ demo.queue(default_concurrency_limit=200, max_size=200)
104
+ 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.2',
20
- 'Eugeoter/artiwaifu-diffusion-1.0',
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
  ]