image: Bring back concurrency limit.
Browse files
app.py
CHANGED
|
@@ -74,7 +74,10 @@ with gr.Blocks(theme=gr.themes.Soft()) as app:
|
|
| 74 |
gr.Examples(EXAMPLES, inputs=[model, size, input], outputs=[image],
|
| 75 |
fn=playground, cache_examples=False, run_on_click=True)
|
| 76 |
|
| 77 |
-
app.queue(
|
|
|
|
|
|
|
|
|
|
| 78 |
show_api=False,
|
| 79 |
server_name="0.0.0.0",
|
| 80 |
pwa=True
|
|
|
|
| 74 |
gr.Examples(EXAMPLES, inputs=[model, size, input], outputs=[image],
|
| 75 |
fn=playground, cache_examples=False, run_on_click=True)
|
| 76 |
|
| 77 |
+
app.queue(
|
| 78 |
+
max_size=3,
|
| 79 |
+
default_concurrency_limit=3
|
| 80 |
+
).launch(
|
| 81 |
show_api=False,
|
| 82 |
server_name="0.0.0.0",
|
| 83 |
pwa=True
|