Spaces:
Paused
Paused
stefanbenten
commited on
Commit
•
9dc331c
1
Parent(s):
9e55a22
app.py: adjust steps boundries and default, allow higher concurrency
Browse files
app.py
CHANGED
@@ -126,7 +126,7 @@ with gr.Blocks(css=css) as demo:
|
|
126 |
sampler = gr.Dropdown(value="DPM++ 2M Karras", show_label=True, label="Sampling Method", choices=prodia_client.list_samplers())
|
127 |
|
128 |
with gr.Column(scale=1):
|
129 |
-
steps = gr.Slider(label="Sampling Steps", minimum=1, maximum=
|
130 |
|
131 |
with gr.Row():
|
132 |
with gr.Column(scale=1):
|
@@ -147,4 +147,4 @@ with gr.Blocks(css=css) as demo:
|
|
147 |
|
148 |
text_button.click(flip_text, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed], outputs=image_output)
|
149 |
|
150 |
-
demo.queue(concurrency_count=
|
|
|
126 |
sampler = gr.Dropdown(value="DPM++ 2M Karras", show_label=True, label="Sampling Method", choices=prodia_client.list_samplers())
|
127 |
|
128 |
with gr.Column(scale=1):
|
129 |
+
steps = gr.Slider(label="Sampling Steps", minimum=1, maximum=25, value=20, step=1)
|
130 |
|
131 |
with gr.Row():
|
132 |
with gr.Column(scale=1):
|
|
|
147 |
|
148 |
text_button.click(flip_text, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed], outputs=image_output)
|
149 |
|
150 |
+
demo.queue(concurrency_count=24, max_size=32, api_open=False).launch(max_threads=128)
|