masteroko commited on
Commit
e5f0a0c
·
verified ·
1 Parent(s): 7e45f55

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -225,7 +225,7 @@ with gr.Blocks(css=css) as demo:
225
  sampler = gr.Dropdown(value="DPM++ 2M Karras", show_label=True, label="Sampling Method", choices=prodia_client.list_samplers())
226
 
227
  with gr.Column(scale=1):
228
- steps = gr.Slider(label="количество обработок", minimum=1, maximum=25, value=20, step=1)
229
 
230
  with gr.Row():
231
  with gr.Column(scale=1):
@@ -243,7 +243,7 @@ with gr.Blocks(css=css) as demo:
243
  image_output = gr.Image(value="https://images.prodia.xyz/8ede1a7c-c0ee-4ded-987d-6ffed35fc477.png")
244
 
245
  text_button.click(txt2img, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height,
246
- seed], outputs=image_output, concurrency_limit=128)
247
 
248
  with gr.Tab("img2img", id='i2i'):
249
  with gr.Row():
@@ -283,7 +283,7 @@ with gr.Blocks(css=css) as demo:
283
 
284
  i2i_text_button.click(img2img, inputs=[i2i_image_input, i2i_denoising, i2i_prompt, i2i_negative_prompt,
285
  model, i2i_steps, i2i_sampler, i2i_cfg_scale, i2i_width, i2i_height,
286
- i2i_seed], outputs=i2i_image_output, concurrency_limit=128)
287
 
288
  with gr.Tab("PNG Info"):
289
  def plaintext_to_html(text, classname=None):
@@ -322,6 +322,6 @@ with gr.Blocks(css=css) as demo:
322
  send_to_txt2img_btn.click(send_to_txt2img, inputs=[image_input], outputs=[tabs, prompt, negative_prompt,
323
  steps, seed, model, sampler,
324
  width, height, cfg_scale],
325
- concurrency_limit=128)
326
 
327
  demo.queue(max_size=80, api_open=False).launch(max_threads=1024, show_api=False)
 
225
  sampler = gr.Dropdown(value="DPM++ 2M Karras", show_label=True, label="Sampling Method", choices=prodia_client.list_samplers())
226
 
227
  with gr.Column(scale=1):
228
+ steps = gr.Slider(label="количество обработок", minimum=1, maximum=50, value=20, step=1)
229
 
230
  with gr.Row():
231
  with gr.Column(scale=1):
 
243
  image_output = gr.Image(value="https://images.prodia.xyz/8ede1a7c-c0ee-4ded-987d-6ffed35fc477.png")
244
 
245
  text_button.click(txt2img, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height,
246
+ seed], outputs=image_output, concurrency_limit=256)
247
 
248
  with gr.Tab("img2img", id='i2i'):
249
  with gr.Row():
 
283
 
284
  i2i_text_button.click(img2img, inputs=[i2i_image_input, i2i_denoising, i2i_prompt, i2i_negative_prompt,
285
  model, i2i_steps, i2i_sampler, i2i_cfg_scale, i2i_width, i2i_height,
286
+ i2i_seed], outputs=i2i_image_output, concurrency_limit=256)
287
 
288
  with gr.Tab("PNG Info"):
289
  def plaintext_to_html(text, classname=None):
 
322
  send_to_txt2img_btn.click(send_to_txt2img, inputs=[image_input], outputs=[tabs, prompt, negative_prompt,
323
  steps, seed, model, sampler,
324
  width, height, cfg_scale],
325
+ concurrency_limit=256)
326
 
327
  demo.queue(max_size=80, api_open=False).launch(max_threads=1024, show_api=False)