Update app.py
Browse files
app.py
CHANGED
@@ -193,8 +193,11 @@ with gr.Blocks(css=css, theme=theme) as app:
|
|
193 |
steps = gr.Slider(label="Number of inference steps", info="If 0, the default value is used.", maximum=100, step=1, value=50)
|
194 |
cfg = gr.Slider(label="Guidance scale", info="If 0, the default value is used.", maximum=100, step=0.1, value=100)
|
195 |
model_drop=gr.Dropdown(label="Models", choices=models, type='index', value=models[0])
|
196 |
-
cnt = gr.Number(value=
|
197 |
out_html=gr.HTML()
|
198 |
outp=gr.Gallery()
|
199 |
btn.click(run_dif_color,[inp,model_drop,cnt,col,tint, width, height, steps, cfg],[outp,out_html])
|
200 |
-
app.
|
|
|
|
|
|
|
|
193 |
steps = gr.Slider(label="Number of inference steps", info="If 0, the default value is used.", maximum=100, step=1, value=50)
|
194 |
cfg = gr.Slider(label="Guidance scale", info="If 0, the default value is used.", maximum=100, step=0.1, value=100)
|
195 |
model_drop=gr.Dropdown(label="Models", choices=models, type='index', value=models[0])
|
196 |
+
cnt = gr.Number(value=2, interactive=True)
|
197 |
out_html=gr.HTML()
|
198 |
outp=gr.Gallery()
|
199 |
btn.click(run_dif_color,[inp,model_drop,cnt,col,tint, width, height, steps, cfg],[outp,out_html])
|
200 |
+
app.queue(default_concurrency_limit=200, max_size=200) # <-- Sets up a queue with default parameters
|
201 |
+
if __name__ == "__main__":
|
202 |
+
timeout = 100
|
203 |
+
app.launch(show_api=False, share=False)
|