Spaces:
Runtime error
Runtime error
chenjian
commited on
Commit
•
c391da7
1
Parent(s):
e66133d
add concurrency
Browse files
app.py
CHANGED
@@ -167,7 +167,7 @@ with block:
|
|
167 |
|
168 |
|
169 |
|
170 |
-
ex = gr.Examples(examples=examples, fn=inference, inputs=[text, styles], outputs=gallery, cache_examples=
|
171 |
ex.dataset.headers = [""]
|
172 |
|
173 |
|
@@ -189,4 +189,4 @@ with block:
|
|
189 |
"""
|
190 |
)
|
191 |
|
192 |
-
block.queue(max_size=100).launch()
|
|
|
167 |
|
168 |
|
169 |
|
170 |
+
ex = gr.Examples(examples=examples, fn=inference, inputs=[text, styles], outputs=gallery, cache_examples=False)
|
171 |
ex.dataset.headers = [""]
|
172 |
|
173 |
|
|
|
189 |
"""
|
190 |
)
|
191 |
|
192 |
+
block.queue(max_size=100, concurrency_count=20).launch()
|