app.py
CHANGED
|
@@ -187,13 +187,13 @@ with gr.Blocks(css=css) as demo:
|
|
| 187 |
value="Show me a glorious mountain range covered in colorful crystaline trees with a laser disco show from space.",
|
| 188 |
container=False,
|
| 189 |
)
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
run_button = gr.Button("Run", scale=0)
|
| 195 |
run_button.click(
|
| 196 |
-
concurrency_limit=
|
| 197 |
fn=infer,
|
| 198 |
inputs=[
|
| 199 |
prompt,
|
|
@@ -217,4 +217,4 @@ with gr.Blocks(css=css) as demo:
|
|
| 217 |
|
| 218 |
|
| 219 |
|
| 220 |
-
demo.queue().launch()
|
|
|
|
| 187 |
value="Show me a glorious mountain range covered in colorful crystaline trees with a laser disco show from space.",
|
| 188 |
container=False,
|
| 189 |
)
|
| 190 |
+
results = [
|
| 191 |
+
gr.Image(format="png", show_label=False)
|
| 192 |
+
for _ in range(MAX_BATCH_SIZE)
|
| 193 |
+
]
|
| 194 |
run_button = gr.Button("Run", scale=0)
|
| 195 |
run_button.click(
|
| 196 |
+
concurrency_limit=25,
|
| 197 |
fn=infer,
|
| 198 |
inputs=[
|
| 199 |
prompt,
|
|
|
|
| 217 |
|
| 218 |
|
| 219 |
|
| 220 |
+
demo.queue(default_concurrency_limit=25).launch()
|