Update app.py
Browse files
app.py
CHANGED
@@ -200,7 +200,7 @@ height: 100% !important;
|
|
200 |
}
|
201 |
"""
|
202 |
|
203 |
-
with gr.Blocks(css=css) as
|
204 |
|
205 |
with gr.Tab("Basic Settings"):
|
206 |
with gr.Row():
|
@@ -249,4 +249,7 @@ with gr.Blocks(css=css) as demo:
|
|
249 |
image_i2i = gr.Image(show_label=True, label='Increased image:')
|
250 |
img2img_b.click(mirror, inputs=[image_output, scale_by, method, gfpgan, codeformer], outputs=image_i2i, concurrency_limit=48)
|
251 |
|
252 |
-
|
|
|
|
|
|
|
|
200 |
}
|
201 |
"""
|
202 |
|
203 |
+
with gr.Blocks(css=css, theme=theme) as app:
|
204 |
|
205 |
with gr.Tab("Basic Settings"):
|
206 |
with gr.Row():
|
|
|
249 |
image_i2i = gr.Image(show_label=True, label='Increased image:')
|
250 |
img2img_b.click(mirror, inputs=[image_output, scale_by, method, gfpgan, codeformer], outputs=image_i2i, concurrency_limit=48)
|
251 |
|
252 |
+
|
253 |
+
app.queue(default_concurrency_limit=200, max_size=200) # <-- Sets up a queue with default parameters
|
254 |
+
if __name__ == "__main__":
|
255 |
+
app.launch()
|